/* ============================================================
   ग्रामपंचायत आंबुलगा - Main Stylesheet
   ============================================================ */

:root {
    --primary: #1F7A63;
    --primary-dark: #165E4C;
    --primary-light: #E8F5F1;
    --secondary: #0F4C81;
    --secondary-dark: #0C3C66;
    --secondary-light: #E8F0F9;
    --accent: #F4B400;
    --accent-dark: #D9A000;
    --accent-light: #FEF9E7;
    --bg: #F8FAFC;
    --white: #FFFFFF;
    --text: #0F172A;
    --muted: #64748B;
    --border: #E2E8F0;
    --radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(31,122,99,0.15);
}

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

body {
    font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-padding { padding: 5rem 0; }
.section-title { font-size: 2rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.section-subtitle { font-size: 1rem; color: var(--muted); margin-top: 0.5rem; }
img { max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* Buttons */
.btn-primary { background: var(--primary); color: #fff; padding: 0.75rem 1.5rem; border-radius: var(--radius); font-weight: 600; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.3s; font-family: inherit; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--secondary); color: #fff; padding: 0.75rem 1.5rem; border-radius: var(--radius); font-weight: 600; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.3s; font-family: inherit; }
.btn-secondary:hover { background: var(--secondary-dark); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--text); padding: 0.75rem 1.5rem; border-radius: var(--radius); font-weight: 600; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.3s; font-family: inherit; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--primary); padding: 0.75rem 1.5rem; border-radius: var(--radius); font-weight: 600; border: 2px solid var(--primary); cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; transition: all 0.3s; font-family: inherit; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-primary-sm { background: var(--primary); color: #fff; padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.85rem; font-weight: 600; transition: all 0.2s; }
.btn-primary-sm:hover { background: var(--primary-dark); }

/* Cards */
.card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 1.5rem; transition: all 0.3s; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Form inputs */
.form-input { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); font-family: inherit; font-size: 0.95rem; color: var(--text); background: var(--white); transition: all 0.2s; }
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31,122,99,0.1); }
.form-label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.4rem; color: var(--text); }

/* Announcement Bar */
.announcement-bar { background: var(--accent); padding: 0.5rem 1rem; display: flex; align-items: center; gap: 0.75rem; overflow: hidden; position: relative; }
.announcement-inner { display: flex; align-items: center; gap: 0.75rem; flex: 1; overflow: hidden; }
.ann-label { white-space: nowrap; font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; gap: 0.3rem; }
.ann-text { white-space: nowrap; font-size: 0.85rem; animation: marquee 30s linear infinite; }
.ann-close { background: none; border: none; cursor: pointer; font-size: 1.1rem; font-weight: bold; padding: 0 0.5rem; }
@keyframes marquee { 0% { transform: translateX(50vw); } 100% { transform: translateX(-100%); } }

/* Sticky Header */
.sticky-header { position: sticky; top: 0; z-index: 1000; }
.navbar { background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-container { display: flex; align-items: center; gap: 1rem; height: 64px; }
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-icon { width: 40px; height: 40px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.1rem; flex-shrink: 0; }
.logo-main { font-weight: 700; font-size: 1rem; color: var(--primary); display: block; line-height: 1.2; }
.logo-sub { font-size: 0.7rem; color: var(--muted); display: block; }
.nav-links { display: flex; list-style: none; gap: 0.25rem; margin-left: auto; }
.nav-links a { padding: 0.5rem 0.75rem; border-radius: 8px; font-size: 0.9rem; font-weight: 500; color: var(--text); transition: all 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.nav-cta { margin-left: 1rem; }
.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 0.5rem; margin-left: auto; }
.hamburger span { width: 24px; height: 2px; background: var(--text); display: block; transition: all 0.3s; border-radius: 2px; }

/* Hero */
.hero { min-height: 70vh; padding: 5rem 0; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; position: relative; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.6) 60%, rgba(15,76,129,0.65) 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; color: white; padding: 2rem; max-width: 900px; }
.hero-tag { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.3); padding: 0.4rem 1rem; border-radius: 999px; font-size: 0.85rem; margin-bottom: 1.5rem; }
.hero-title { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; line-height: 1.1; margin-bottom: 0.75rem; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero-sub { font-size: 1.1rem; opacity: 0.9; margin-bottom: 0.5rem; }
.hero-desc { font-size: 0.95rem; opacity: 0.8; margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 1.5rem; text-align: center; transition: all 0.3s; }
.stat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.stat-icon { width: 52px; height: 52px; background: var(--primary-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; color: var(--primary); font-size: 1.3rem; transition: all 0.3s; }
.stat-card:hover .stat-icon { background: var(--primary); color: white; }
.stat-num { font-family: 'Poppins', sans-serif; font-size: 2.5rem; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; }

/* Schemes */
.schemes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.scheme-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: all 0.3s; }
.scheme-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.scheme-body { padding: 1.5rem; }
.scheme-icon { width: 48px; height: 48px; background: var(--primary-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--primary); font-size: 1.2rem; }
.scheme-title { font-weight: 700; font-size: 1rem; margin-bottom: 0.5rem; }
.scheme-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.75rem; }
.scheme-benefit { display: inline-block; background: var(--accent-light); color: var(--accent-dark); font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 999px; }
.scheme-footer { padding: 0.75rem 1.5rem; background: rgba(232,245,241,0.5); border-top: 1px solid var(--border); }
.scheme-footer a { font-size: 0.85rem; color: var(--primary); font-weight: 600; display: flex; align-items: center; gap: 0.25rem; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.service-item { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 1.25rem; cursor: pointer; transition: all 0.3s; }
.service-item:hover { background: var(--primary); color: white; }
.service-item:hover .service-icon { background: rgba(255,255,255,0.2); color: white; }
.service-icon { width: 44px; height: 44px; background: var(--primary-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; color: var(--primary); font-size: 1.1rem; transition: all 0.3s; }
.service-title { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.25rem; }
.service-desc { font-size: 0.75rem; opacity: 0.7; }

/* Notice Board */
.notice-item { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); padding: 1rem; display: flex; gap: 0.75rem; }
.notice-item.important { border-color: #fca5a5; background: #fff8f8; }
.notice-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.notice-dot.important-dot { background: #dc2626; animation: pulse 2s infinite; }
.notice-dot.normal-dot { background: var(--primary); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.badge-important { background: #fee2e2; color: #dc2626; font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.notice-title { font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem; }
.notice-content { font-size: 0.8rem; color: var(--muted); }
.notice-date { font-size: 0.7rem; color: var(--muted); margin-top: 0.25rem; font-family: 'Poppins', sans-serif; }

/* CTA Section */
.cta-section { background: var(--secondary); padding: 5rem 0; text-align: center; }
.cta-title { font-size: 2rem; font-weight: 700; color: white; margin-bottom: 1rem; }
.cta-desc { font-size: 1rem; color: rgba(255,255,255,0.8); margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-item { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: #ddd; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); transition: all 0.3s; display: flex; align-items: flex-end; }
.gallery-item:hover .gallery-overlay { background: rgba(0,0,0,0.5); }
.gallery-info { padding: 1rem; color: white; opacity: 0; transition: all 0.3s; transform: translateY(8px); }
.gallery-item:hover .gallery-info { opacity: 1; transform: translateY(0); }

/* Page Banner */
.page-banner { position: relative; background-size: cover; background-position: center; padding: 5rem 0; }
.page-banner-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.6) 60%, rgba(15,76,129,0.65) 100%); }
.page-banner-content { position: relative; z-index: 2; text-align: center; color: white; }
.page-banner-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 0.5rem; }

/* About grid */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-img { width: 100%; height: 400px; object-fit: cover; border-radius: 1rem; box-shadow: var(--shadow-lg); }
.about-badge { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 999px; margin-bottom: 1rem; }
.about-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0; }
.about-tag { background: var(--secondary-light); color: var(--secondary); font-size: 0.8rem; font-weight: 600; padding: 0.35rem 0.75rem; border-radius: 8px; }
.about-stat { background: var(--primary); color: white; padding: 1.25rem; border-radius: var(--radius); text-align: center; position: absolute; bottom: -1rem; left: -1rem; }
.about-img-wrap { position: relative; }

/* Footer */
.footer { background: var(--secondary); color: white; padding: 4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand { }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer-logo-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.15); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.footer-logo-main { font-weight: 700; font-size: 1rem; }
.footer-logo-sub { font-size: 0.7rem; opacity: 0.7; }
.footer-desc { font-size: 0.85rem; opacity: 0.75; line-height: 1.7; margin-bottom: 1.25rem; }
.social-links { display: flex; gap: 0.75rem; }
.social-link { width: 36px; height: 36px; background: rgba(255,255,255,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; font-size: 0.85rem; }
.social-link:hover { background: rgba(255,255,255,0.2); }
.footer-col h4 { font-weight: 700; font-size: 0.95rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a, .footer-col ul li { font-size: 0.85rem; opacity: 0.75; transition: opacity 0.2s; }
.footer-col ul li a:hover { opacity: 1; }
.contact-list li { display: flex; gap: 0.6rem; align-items: flex-start; }
.contact-list i { margin-top: 3px; color: var(--accent); flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.25rem 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; font-size: 0.8rem; opacity: 0.55; flex-wrap: wrap; gap: 0.5rem; }

/* Admin Table */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { background: #F8FAFC; font-size: 0.75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table td { font-size: 0.875rem; padding: 0.75rem 1rem; border-bottom: 1px solid #F1F5F9; }
.admin-table tr:hover td { background: #F8FAFC; }
.badge-pending { background: #FEF3C7; color: #D97706; font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.badge-approved { background: #D1FAE5; color: #059669; font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.badge-rejected { background: #FEE2E2; color: #DC2626; font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; }

/* Mobile sticky CTA */
.mobile-sticky-cta { position: fixed; bottom: 20px; right: 20px; z-index: 999; background: var(--accent); color: var(--text); padding: 0.75rem 1.25rem; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow-lg); display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; display: flex; align-items: center; justify-content: center; animation: fadeIn 0.2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); object-fit: contain; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; background: rgba(255,255,255,0.15); border: none; border-radius: 50%; color: white; font-size: 1.25rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; background: rgba(255,255,255,0.15); border: none; border-radius: 50%; color: white; font-size: 1.25rem; cursor: pointer; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

/* Form success */
.success-box { background: var(--primary-light); border: 1px solid var(--primary); border-radius: var(--radius); padding: 2rem; text-align: center; }
.success-icon { font-size: 3rem; color: var(--primary); margin-bottom: 1rem; }

/* Responsive */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .schemes-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .mobile-sticky-cta { display: block; }
}

@media (max-width: 768px) {
    .section-padding { padding: 3rem 0; }
    .section-title { font-size: 1.6rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .schemes-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: white; border-bottom: 1px solid var(--border); padding: 1rem; gap: 0.25rem; }
    .nav-links.open { display: flex; }
    .nav-cta { display: none; }
    .hamburger { display: flex; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .logo-text .logo-sub { display: none; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .cta-buttons { flex-direction: column; align-items: center; }
}
