/* ============================================
   JAYSHREE UNION - FRONTEND CSS
   Deep Teal + Gold Theme, Bengali Font
   ============================================ */

:root {
    --primary: #0d7b78;
    --primary-dark: #0a5e5c;
    --primary-light: #1aada9;
    --gold: #c9a227;
    --gold-light: #e4b83a;
    --text-dark: #1a1a2e;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --bg-section: #f0f7f7;
    --white: #ffffff;
    --border: #e0e0e0;
    --shadow: 0 4px 20px rgba(13,123,120,0.12);
    --shadow-hover: 0 8px 30px rgba(13,123,120,0.2);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Hind Siliguri', 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--white);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ─── TOPBAR ─────────────────────────────────── */
.topbar {
    background: linear-gradient(90deg, #072b2d 0%, var(--primary-dark) 100%);
    color: rgba(255,255,255,0.88);
    padding: 7px 0;
    font-size: 0.78rem;
    letter-spacing: 0.2px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-info span { display: flex; align-items: center; gap: 6px; }
.topbar-info i { color: var(--gold-light); font-size: 0.72rem; }
.topbar-social {
    color: rgba(255,255,255,0.9);
    display: flex; align-items: center; gap: 6px;
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(255,255,255,0.06);
    transition: var(--transition);
}
.topbar-social i { color: var(--gold-light); }
.topbar-social:hover { color: var(--gold-light); background: rgba(255,255,255,0.12); }

/* ─── HEADER ─────────────────────────────────── */
.site-header {
    background: var(--white);
    box-shadow: 0 1px 16px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}
.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(13,123,120,0.12);
    background: rgba(255,255,255,0.96);
    border-bottom-color: rgba(13,123,120,0.08);
}
@media (min-width: 992px) {
    .site-header.scrolled {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    gap: 16px;
}

/* ── Brand Logo ── */
.brand {
    display: flex; align-items: center; gap: 12px;
    flex-shrink: 0;
}
.brand-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 1.1rem;
    box-shadow: 0 3px 10px rgba(13,123,120,0.25);
    flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 1rem; font-weight: 700; color: var(--primary); line-height: 1.2; white-space: nowrap; }
.brand-text small { font-size: 0.68rem; color: var(--text-muted); white-space: nowrap; }

/* ── Desktop Navigation ── */
.main-nav { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; flex-shrink: 1; min-width: 0; }
.main-nav a {
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
}
.main-nav a:hover { color: var(--primary); background: var(--bg-section); }
.main-nav a.active { color: var(--primary); background: var(--bg-section); }

/* ── CTA Buttons ── */
.main-nav .nav-login-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white) !important;
    padding: 7px 16px;
    border-radius: 22px;
    font-weight: 600;
    font-size: 0.82rem;
    box-shadow: 0 3px 10px rgba(13,123,120,0.3);
    margin-left: 6px;
    transition: var(--transition);
}
.main-nav .nav-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(13,123,120,0.45);
    background: linear-gradient(135deg, var(--primary-light), var(--primary)) !important;
    color: var(--white) !important;
}
.main-nav .nav-complaint-btn {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--white) !important;
    padding: 7px 16px;
    border-radius: 22px;
    font-weight: 600;
    font-size: 0.82rem;
    box-shadow: 0 3px 10px rgba(201,162,39,0.3);
    margin-left: 4px;
    transition: var(--transition);
}
.main-nav .nav-complaint-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(201,162,39,0.45);
    background: linear-gradient(135deg, var(--gold-light), var(--gold)) !important;
    color: var(--white) !important;
}

/* ── Dropdown Menus (Desktop) ── */
.main-nav .dropdown { position: relative; display: inline-block; }
.main-nav .dropdown-toggle {
    display: inline-flex; align-items: center; gap: 5px;
    cursor: pointer; text-decoration: none;
}
.main-nav .dropdown-toggle::after { display: none !important; }
.main-nav .dropdown-toggle i.fa-chevron-down {
    font-size: 0.6rem !important; opacity: 0.6; transition: transform 0.2s ease;
}
.main-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    min-width: 200px;
    background: var(--white);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 6px;
    margin: 0;
    list-style: none;
    border: 1px solid rgba(0, 75, 80, 0.06);
    animation: dropFade 0.2s ease;
}
.main-nav .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 12px;
    background: transparent;
}
@keyframes dropFade {
    from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@media (min-width: 992px) {
    .main-nav .dropdown:hover .dropdown-menu { display: block !important; }
    .main-nav .dropdown:hover > .dropdown-toggle { color: var(--primary) !important; background: var(--bg-section) !important; }
    .main-nav .dropdown:hover .dropdown-toggle i.fa-chevron-down { transform: rotate(180deg); }
}
.main-nav .dropdown-item {
    display: flex; align-items: center; gap: 8px;
    width: 100%;
    padding: 9px 14px !important;
    font-weight: 500;
    color: var(--text-dark) !important;
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
    border: 0;
    font-size: 0.86rem !important;
    border-radius: 6px;
    transition: var(--transition);
}
.main-nav .dropdown-item:hover {
    background: var(--bg-section) !important;
    color: var(--primary) !important;
}

/* ── Hamburger ── */
.hamburger {
    display: none;
    flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition);
    z-index: 10;
}
.hamburger:hover { background: var(--bg-section); }
.hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--primary); border-radius: 2px;
    transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Sidebar Overlay ── */
.sidebar-overlay {
    position: fixed; inset: 0;
    background: rgba(10, 30, 32, 0.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
}
.sidebar-overlay.active { opacity: 1; visibility: visible; }

/* ── Sidebar Body (Desktop: inline flex) ── */
@media (min-width: 992px) {
    .sidebar-body { display: flex !important; align-items: center; gap: 2px; width: auto; flex-wrap: nowrap; flex-direction: row !important; }
    .sidebar-header { display: none !important; }
}

/* ─── MOBILE SIDEBAR ────────────────────────── */
@media (max-width: 991px) {
    .hamburger { display: flex; }

    .main-nav {
        position: fixed; top: 0; right: -330px; bottom: 0;
        width: 310px;
        background: var(--white);
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        padding: 0 !important;
        gap: 0 !important;
        box-shadow: -10px 0 40px rgba(0,60,63,0.18);
        z-index: 9999;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        display: flex !important;
        min-width: 310px !important;
    }
    .main-nav.open { right: 0; }

    /* Sidebar header */
    .sidebar-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 18px 20px;
        border-bottom: 1px solid rgba(0, 75, 80, 0.07);
        background: linear-gradient(135deg, var(--bg-section) 0%, #e8f4f4 100%);
        width: 100%;
        flex-shrink: 0;
    }
    .sidebar-header .brand { display: flex; align-items: center; gap: 10px; }
    .sidebar-header .brand-icon {
        width: 34px; height: 34px;
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: var(--white); border-radius: 8px;
        display: flex; align-items: center; justify-content: center;
        font-size: 0.9rem;
    }
    .sidebar-header .brand-name { font-size: 0.92rem; font-weight: 700; color: var(--primary); white-space: nowrap !important; }
    .sidebar-close {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        background: rgba(0, 75, 80, 0.07);
        color: var(--primary);
        width: 34px; height: 34px;
        border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        cursor: pointer;
        font-size: 1rem;
        transition: var(--transition);
    }
    .sidebar-close:hover { background: var(--primary); color: var(--white); }

    /* Sidebar body */
    .sidebar-body {
        padding: 16px;
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 4px;
        width: 100% !important;
        flex: 1;
    }

    .main-nav a, .main-nav .dropdown { width: 100% !important; display: block !important; }
    .main-nav a {
        display: flex !important;
        align-items: center;
        gap: 8px;
        padding: 11px 16px !important;
        font-size: 0.92rem !important;
        color: var(--text-dark) !important;
        font-weight: 600;
        border-radius: 8px;
        transition: var(--transition);
        border-left: 3px solid transparent;
        white-space: normal !important;
        width: 100% !important;
    }
    .main-nav a:hover, .main-nav a.active {
        background: var(--bg-section) !important;
        color: var(--primary) !important;
        border-left-color: var(--primary);
    }

    /* Dropdown */
    .main-nav .dropdown { display: block; }
    .main-nav .dropdown-toggle {
        display: flex !important;
        justify-content: space-between;
        width: 100%;
        border-left: 3px solid transparent;
    }
    .main-nav .dropdown-toggle i.fa-chevron-down {
        transition: transform 0.25s ease;
    }
    .main-nav .dropdown-toggle[aria-expanded="true"] i.fa-chevron-down {
        transform: rotate(180deg);
    }
    .main-nav .dropdown-menu {
        position: static !important;
        transform: none !important;
        display: none !important;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 16px;
        margin: 4px 0 4px 12px;
        background: transparent !important;
        border-left: 2px solid var(--gold) !important;
        animation: none;
        min-width: 0;
    }
    .main-nav .dropdown-menu.show {
        display: block !important;
    }
    .main-nav .dropdown-item {
        padding: 9px 14px !important;
        font-size: 0.88rem !important;
        border-radius: 6px;
        color: var(--text-muted) !important;
        font-weight: 500;
    }
    .main-nav .dropdown-item:hover { color: var(--primary) !important; background: var(--bg-section) !important; }

    /* CTA buttons in sidebar */
    .main-nav .nav-complaint-btn,
    .main-nav .nav-login-btn {
        text-align: center;
        margin-left: 0 !important;
        border-radius: 10px !important;
        margin-top: 6px;
        border-left: none !important;
        justify-content: center;
        padding: 11px 16px !important;
        color: var(--white) !important;
    }
}

/* ─── HERO SECTION ───────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    min-height: 85vh;
    display: flex; align-items: center;
    position: relative; overflow: hidden;
    padding: 80px 0;
}
.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 2; color: var(--white); }
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    padding: 6px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}
.hero-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}
.hero-title .highlight { color: var(--gold-light); }
.hero-subtitle {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 500px;
}
.hero-meta { display: flex; flex-direction: column; gap: 6px; margin-bottom: 30px; }
.hero-meta-item { display: flex; align-items: center; gap: 10px; opacity: 0.9; font-size: 0.9rem; }
.hero-meta-item i { color: var(--gold-light); width: 18px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--white);
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 6px 20px rgba(201,162,39,0.4);
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
    border: none; cursor: pointer;
}
.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(201,162,39,0.5);
    color: var(--white);
}
.btn-hero-secondary {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.5);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    backdrop-filter: blur(6px);
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.25);
    color: var(--white);
    transform: translateY(-2px);
}

.hero-image-side {
    display: flex; justify-content: center; align-items: center;
    position: relative;
}
.hero-profile-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    color: var(--white);
    max-width: 280px;
    width: 100%;
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.hero-profile-img {
    width: 130px; height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gold);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    margin-bottom: 16px;
}
.hero-profile-placeholder {
    width: 130px; height: 130px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 3.5rem;
    border: 4px solid var(--gold);
    margin: 0 auto 16px;
}
.hero-profile-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.hero-profile-title { font-size: 0.82rem; opacity: 0.8; }
.hero-gold-line {
    width: 50px; height: 3px;
    background: var(--gold);
    margin: 12px auto;
    border-radius: 2px;
}

/* ─── STATS SECTION ──────────────────────────── */
.stats-section {
    background: var(--white);
    padding: 60px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}
.stat-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative; overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}
.stat-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 16px;
}
.stat-icon.teal { background: rgba(13,123,120,0.12); color: var(--primary); }
.stat-icon.gold { background: rgba(201,162,39,0.12); color: var(--gold); }
.stat-icon.blue { background: rgba(13,75,183,0.1); color: #0d4bb7; }
.stat-icon.green { background: rgba(25,135,84,0.1); color: #198754; }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.88rem; color: var(--text-muted); margin-top: 8px; }

/* ─── SECTION COMMONS ────────────────────────── */
.section-header { text-align: center; margin-bottom: 50px; }
.section-tag {
    display: inline-block;
    background: rgba(13,123,120,0.1);
    color: var(--primary);
    padding: 5px 18px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}
.section-title { font-size: 2rem; font-weight: 700; color: var(--text-dark); margin-bottom: 12px; }
.section-line {
    width: 60px; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    margin: 0 auto;
    border-radius: 2px;
}
.section-desc { color: var(--text-muted); margin-top: 14px; font-size: 0.95rem; }

.bg-section { background: var(--bg-section); }

/* ─── VILLAGE CARDS ──────────────────────────── */
.villages-section { padding: 80px 0; }
.village-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}
.village-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.village-card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 20px;
    color: var(--white);
    display: flex; justify-content: space-between; align-items: flex-start;
}
.village-number { font-size: 1.8rem; font-weight: 700; opacity: 0.25; }
.village-name { font-size: 1.1rem; font-weight: 700; }
.village-card-body { padding: 20px; }
.voter-row {
    display: flex; justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}
.voter-row:last-child { border-bottom: none; }
.voter-label { color: var(--text-muted); }
.voter-value { font-weight: 600; color: var(--text-dark); }
.voter-value.male { color: #0d4bb7; }
.voter-value.female { color: #b7066d; }
.voter-value.total { color: var(--primary); font-size: 1rem; }
.village-link {
    display: block;
    text-align: center;
    margin-top: 14px;
    padding: 10px;
    background: rgba(13,123,120,0.08);
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
}
.village-link:hover { background: var(--primary); color: var(--white); }

/* ─── NOTICE SECTION ────────────────────────── */
.notices-section { padding: 80px 0; }
.notice-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    display: flex; gap: 18px;
    transition: var(--transition);
    margin-bottom: 16px;
}
.notice-item:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.notice-date-box {
    min-width: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-sm);
    color: var(--white);
    text-align: center;
    padding: 10px 6px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.notice-day { font-size: 1.4rem; font-weight: 700; line-height: 1; }
.notice-month { font-size: 0.7rem; opacity: 0.85; }
.notice-content { flex: 1; }
.notice-title { font-size: 1rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.notice-title a:hover { color: var(--primary); }
.notice-desc { font-size: 0.85rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ─── SERVICES SECTION ───────────────────────── */
.services-section { padding: 80px 0; }
.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.service-icon {
    width: 70px; height: 70px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 1.6rem;
    margin: 0 auto 20px;
    box-shadow: 0 6px 18px rgba(13,123,120,0.3);
    transition: var(--transition);
}
.service-card:hover .service-icon { transform: scale(1.1); }
.service-title { font-size: 1.05rem; font-weight: 600; color: var(--text-dark); margin-bottom: 10px; }
.service-desc { font-size: 0.85rem; color: var(--text-muted); }

/* ─── GALLERY ────────────────────────────────── */
.gallery-section { padding: 80px 0; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: rgba(13,123,120,0.6);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: var(--white); font-size: 1.5rem; }

/* ─── COMPLAINT CTA ──────────────────────────── */
.complaint-cta {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 80px 0;
    text-align: center;
    color: var(--white);
    position: relative; overflow: hidden;
}
.complaint-cta::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 20.5V18H0v5h5v5H0v5h20v-2.5h5v2.5h15v-5h-5v-5h5v-5H25v2.5H20zm0 2v-2h5v2h-5zm0 4v2h-5v-2h5zm5-4h5v-2h-5v2zm-15 0h-5v-2h5v2zm0 2v2H5v-2h5zm0-10V12H5v2H0v2h5v-2h5zm10 4v-4h-5v4h5z'/%3E%3C/g%3E%3C/svg%3E");
}
.complaint-cta > * { position: relative; z-index: 2; }
.complaint-cta h2 { font-size: 2rem; font-weight: 700; margin-bottom: 14px; }
.complaint-cta p { font-size: 1rem; opacity: 0.9; margin-bottom: 30px; }

/* ─── FORMS ──────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 50px 0;
    color: var(--white);
    text-align: center;
}
.page-hero h1 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.page-hero p { opacity: 0.85; }

.form-section { padding: 70px 0; }
.form-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.form-label { font-weight: 600; font-size: 0.9rem; color: var(--text-dark); margin-bottom: 6px; }
.form-control, .form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.92rem;
    font-family: 'Hind Siliguri', sans-serif;
    transition: var(--transition);
    color: var(--text-dark);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13,123,120,0.15);
    outline: none;
}
.form-control.is-invalid { border-color: #dc3545; }
.invalid-feedback { font-size: 0.82rem; }

.btn-submit {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 13px 36px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none; cursor: pointer;
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'Hind Siliguri', sans-serif;
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13,123,120,0.35);
    color: var(--white);
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 600;
    border: none; cursor: pointer;
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary-custom:hover { transform: translateY(-1px); box-shadow: var(--shadow); color: var(--white); }

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--white);
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 600;
    border: none; cursor: pointer;
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,162,39,0.3); color: var(--white); }

/* ─── FOOTER ─────────────────────────────────── */
.site-footer {
    background: linear-gradient(180deg, #052224 0%, #020f10 100%);
    color: rgba(255, 255, 255, 0.75);
    padding: 80px 0 0;
    position: relative;
    border-top: 3px solid var(--gold);
    overflow: hidden;
}

/* Subtle background accent glow */
.site-footer::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, rgba(13, 123, 120, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.footer-top-row {
    margin-bottom: 50px;
}

/* Footer Brand and Tagline */
.footer-brand-info {
    padding-right: 20px;
}
.footer-logo {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}
.footer-logo .logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: var(--white);
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(13, 123, 120, 0.3);
}
.footer-logo h5 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 3px;
    letter-spacing: 0.3px;
}
.footer-logo p {
    font-size: 0.75rem;
    color: var(--gold-light);
    margin: 0;
    opacity: 0.9;
}
.footer-tagline {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 8px;
    opacity: 0.8;
}
.footer-about-text {
    font-size: 0.82rem;
    line-height: 1.6;
    margin-bottom: 24px;
    opacity: 0.65;
    text-align: justify;
}

/* Social Icons Wrap */
.social-links-wrap {
    display: flex;
    gap: 12px;
}
.social-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    transition: var(--transition);
}
.social-icon:hover {
    transform: translateY(-3px);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.social-icon.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}
.social-icon.youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

/* Section Title */
.footer-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}
.footer-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

/* Nav Links */
.footer-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
    margin: 0;
}
.footer-nav-links a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}
.footer-nav-links a i {
    font-size: 0.65rem;
    opacity: 0;
    transform: translateX(-5px);
    transition: var(--transition);
    color: var(--gold-light);
}
.footer-nav-links a:hover {
    color: var(--gold-light);
}
.footer-nav-links a:hover i {
    opacity: 1;
    transform: translateX(0);
}

/* Contact Card styled container */
.footer-contact-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-card-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.contact-card-item .item-icon {
    width: 36px;
    height: 36px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--gold);
    font-size: 0.95rem;
    flex-shrink: 0;
}
.contact-card-item small {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.5;
    display: block;
    margin-bottom: 2px;
}
.contact-card-item p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.4;
}

/* Dividers & Bottom Row */
.footer-divider-glow {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.02) 100%);
    margin: 0;
}
.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.82rem;
}
.copyright-info p {
    margin: 0;
    opacity: 0.65;
}
.admin-portal-link {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 16px;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    transition: var(--transition);
}
.admin-portal-link:hover {
    background: var(--primary);
    border-color: var(--primary-light);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(13, 123, 120, 0.3);
}

@media (max-width: 991px) {
    .footer-bottom-row {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .footer-brand-info {
        padding-right: 0;
        margin-bottom: 20px;
    }
}

/* ─── PAGINATION ─────────────────────────────── */
.pagination .page-link {
    color: var(--primary);
    border-color: var(--border);
}
.pagination .page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* ─── BADGES ─────────────────────────────────── */
.status-badge {
    padding: 4px 12px; border-radius: 15px; font-size: 0.78rem; font-weight: 600;
}
.badge-pending  { background: rgba(255,193,7,0.15); color: #b38600; }
.badge-solved   { background: rgba(25,135,84,0.15); color: #198754; }
.badge-rejected { background: rgba(220,53,69,0.15); color: #dc3545; }
.badge-processing { background: rgba(13,202,240,0.15); color: #0dcaf0; }

/* ─── ALERT / SUCCESS ────────────────────────── */
.success-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 50px 40px;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary);
}
.success-icon {
    width: 80px; height: 80px;
    background: rgba(13,123,120,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; color: var(--primary);
    margin: 0 auto 20px;
}
.tracking-box {
    background: var(--bg-section);
    border: 2px dashed var(--primary);
    border-radius: var(--radius);
    padding: 20px;
    margin: 24px 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}

/* ─── RESPONSIVE (non-header) ────────────────── */
@media (max-width: 991px) {
    .hero-section { padding: 60px 0; }
    .hero-profile-card { margin-top: 40px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .topbar-info { flex-direction: column; gap: 4px; }
    .hero-title { font-size: 1.6rem; }
    .form-card { padding: 24px 16px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── CONTAINER WIDTH OVERRIDES ─────────────── */
@media (min-width: 1200px) {
    .container { max-width: 1300px !important; }
}

/* Stacking Context Fix to prevent mobile menu backdrop-blur from blurring the menu itself */
body.sidebar-open .site-header {
    z-index: 10000 !important;
}

/* Lightbox Styling */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 33, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 5000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: var(--danger);
  transform: rotate(90deg);
}

.lightbox-content {
  max-width: 900px;
  max-height: 75vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img, .lightbox-content video {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-caption {
  color: var(--white);
  margin-top: 20px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  max-width: 600px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

@media(max-width: 768px) {
  .lightbox {
    padding: 20px;
  }
  .lightbox-close {
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .lightbox-caption {
    font-size: 15px;
    margin-top: 15px;
  }
}
