/* ============================================
   Inquiry Nepal Election Updates - Modern UI
   
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --primary: #1b2a4a;
    --primary-light: #2d4373;
    --primary-dark: #0f1a2e;
    --accent: #e63946;
    --accent-light: #ff6b6b;
    --accent-dark: #c1121f;
    --gold: #f7b801;
    --gold-light: #ffd166;
    --success: #06d6a0;
    --success-dark: #04a67d;
    --info: #118ab2;
    --warning: #f4a261;
    --danger: #e63946;
    --bg-body: #f0f2f5;
    --bg-white: #ffffff;
    --bg-light: #f8f9fb;
    --bg-card: #ffffff;
    --text-dark: #1a1a2e;
    --text-body: #4a4a5a;
    --text-muted: #8b8b9a;
    --text-light: #b0b0be;
    --border-color: #e8eaed;
    --border-light: #f0f1f3;
    --card-radius: 14px;
    --card-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
    --card-hover-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.06);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Base ---- */
* { box-sizing: border-box; }

html, body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Inter', 'Mukta', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-body);
    color: var(--text-body);
    line-height: 1.65;
    font-size: 0.95rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover {
    color: var(--accent-dark);
}

::selection {
    background: var(--accent);
    color: #fff;
}

/* ---- Bootstrap Utility Overrides ---- */
.bg-primary { background-color: var(--primary) !important; }
.bg-danger { background-color: var(--accent) !important; }
.bg-success { background-color: var(--success) !important; }
.bg-warning { background-color: var(--gold) !important; }
.bg-info { background-color: var(--info) !important; }

.text-primary { color: var(--primary) !important; }
.text-danger { color: var(--accent) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--gold) !important; }
.text-info { color: var(--info) !important; }

.btn-primary { background-color: var(--accent); border-color: var(--accent); }
.btn-primary:hover, .btn-primary:focus { background-color: var(--accent-dark); border-color: var(--accent-dark); }
.btn-primary:active { background-color: var(--accent-dark) !important; border-color: var(--accent-dark) !important; }

.btn-outline-primary { color: var(--accent); border-color: var(--accent); }
.btn-outline-primary:hover { background-color: var(--accent); border-color: var(--accent); color: #fff; }

.btn-warning { background-color: var(--gold); border-color: var(--gold); color: var(--text-dark); }
.btn-warning:hover { background-color: #e5a901; border-color: #e5a901; color: var(--text-dark); }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: #c0c0d0; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a0a0b0; }

/* ---- Top Bar ---- */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255,255,255,.75);
    font-size: 0.78rem;
    padding: 6px 0;
    letter-spacing: 0.01em;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.top-bar i { opacity: 0.7; }

/* ---- Header ---- */
.main-header {
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    z-index: 1030;
}

/* Row 1: Brand bar */
.main-nav {
    background: var(--primary) !important;
    padding: 0;
    border: none;
    box-shadow: none;
}
.main-nav .container {
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.brand-text strong {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.brand-text small {
    font-size: 0.72rem;
    opacity: 0.7;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Row 2: Navigation strip */
.nav-strip {
    background: var(--primary);
    border-top: 1px solid rgba(255,255,255,0.08);
}
.nav-strip-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.nav-strip-menu::-webkit-scrollbar { display: none; }
.nav-strip-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255,255,255,0.75);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 8px 10px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}
.nav-strip-link i {
    font-size: 0.85rem;
    opacity: 0.7;
}
.nav-strip-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
    border-bottom-color: rgba(255,255,255,0.3);
}
.nav-strip-link:hover i {
    opacity: 1;
}
.nav-strip-link.active {
    color: #fff;
    font-weight: 600;
    border-bottom-color: var(--accent);
    background: rgba(255,255,255,0.08);
}
.nav-strip-link.active i {
    opacity: 1;
    color: var(--accent);
}
.nav-strip-sep {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,0.15);
    margin: 0 4px;
}

.sidebar-toggle-btn {
    border: none;
    outline: none;
    box-shadow: none !important;
    line-height: 1;
}
.sidebar-toggle-btn:hover {
    opacity: 0.8;
}

.navbar .input-group .form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 0.8rem;
    border-radius: 8px 0 0 8px;
}
.navbar .input-group .form-control::placeholder { color: rgba(255,255,255,0.5); }
.navbar .input-group .form-control:focus {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    box-shadow: none;
}
.navbar .input-group .btn {
    border-radius: 0 8px 8px 0;
    font-size: 0.8rem;
}

/* ---- Sidebar Offcanvas ---- */
.sidebar-nav {
    width: min(300px, 85vw) !important;
    border-left: none;
}
.sidebar-header {
    background: var(--primary);
    color: #fff;
    padding: 18px 20px;
    border-bottom: 3px solid var(--accent);
}
.sidebar-header h5,
.sidebar-header .offcanvas-title {
    color: #fff;
}
.sidebar-header small {
    font-size: 0.72rem;
    opacity: 0.65;
}
.sidebar-body {
    background: var(--bg-white);
    overflow-y: auto;
}
.sidebar-search {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-search .form-control {
    font-size: 0.85rem;
    border-radius: 8px 0 0 8px;
}
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-menu-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 16px 20px 6px;
    margin: 0;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-body);
    text-decoration: none;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}
.sidebar-link:hover {
    background: var(--bg-light);
    color: var(--accent);
    border-left-color: var(--accent);
}
.sidebar-link.active {
    background: rgba(230, 57, 70, 0.06);
    color: var(--accent);
    font-weight: 600;
    border-left-color: var(--accent);
}
.sidebar-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: var(--text-muted);
    transition: color var(--transition);
}
.sidebar-link:hover i,
.sidebar-link.active i {
    color: var(--accent);
}
.sidebar-sublink {
    padding-left: 50px;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-muted);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 10px;
    padding: 6px;
    animation: slideDown 0.2s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.dropdown-item {
    border-radius: 6px;
    font-size: 0.88rem;
    padding: 7px 12px;
    transition: all 0.15s;
}
.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--accent);
}

/* ---- Election Year Switcher Bar ---- */
.election-switcher-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 0.85rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    position: sticky;
    top: 52px;
    z-index: 1020;
}
.election-switcher .btn-group .btn {
    font-size: 0.75rem;
    padding: 5px 14px;
    font-weight: 600;
    border-radius: 20px !important;
    margin: 0 3px;
    transition: all var(--transition);
}
.election-switcher .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(230,57,70,0.3);
}
.election-switcher .btn-primary:hover {
    background: var(--accent-dark);
}
.election-switcher .btn-outline-primary {
    color: var(--text-body);
    border-color: var(--border-color);
    background: var(--bg-light);
}
.election-switcher .btn-outline-primary:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.election-switcher .badge {
    font-size: 0.65rem;
    font-weight: 700;
    vertical-align: middle;
    letter-spacing: 0.02em;
}

/* ---- Hero Section ---- */
.hero-section {
    background: linear-gradient(135deg, #0f1a2e 0%, #162544 30%, #1e3a5f 60%, #2a5478 100%);
    color: #fff;
    padding: 50px 0 45px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(230,57,70,0.15) 0%, rgba(230,57,70,0.04) 40%, transparent 70%);
    border-radius: 50%;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -60px;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(6,214,160,0.1) 0%, rgba(6,214,160,0.03) 40%, transparent 70%);
    border-radius: 50%;
}
.hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.hero-title .text-warning {
    color: var(--gold) !important;
    display: block;
}
.hero-subtitle {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 28px;
    max-width: 560px;
    line-height: 1.7;
}
.hero-buttons .btn {
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: all var(--transition);
}
.hero-buttons .btn-warning {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 18px rgba(230,57,70,0.35);
}
.hero-buttons .btn-warning:hover {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    border-color: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(230,57,70,0.45);
}
.hero-buttons .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.35);
    font-weight: 600;
}
.hero-buttons .btn-outline-light:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

/* ---- Countdown ---- */
.countdown-box {
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
}
.countdown-label {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 4px;
    align-items: center;
}
.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.countdown-number {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    background: rgba(0,0,0,0.25);
    border-radius: 12px;
    padding: 10px 16px;
    min-width: 64px;
    font-variant-numeric: tabular-nums;
}
.countdown-text {
    font-size: 0.68rem;
    text-transform: uppercase;
    opacity: 0.65;
    margin-top: 6px;
    font-weight: 500;
    letter-spacing: 0.08em;
}
.countdown-separator {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    opacity: 0.4;
    margin: 0 2px;
}
.countdown-date {
    margin-top: 14px;
    font-size: 0.82rem;
    opacity: 0.6;
}

/* ---- Stats Bar ---- */
.stats-bar {
    background: var(--bg-white);
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}
.stat-item {
    padding: 20px 10px;
    text-align: center;
    position: relative;
    transition: transform var(--transition);
}
.stat-item::after {
    content: '';
    position: absolute;
    right: 0; top: 25%; height: 50%;
    width: 1px;
    background: var(--border-color);
}
.row > div:last-child .stat-item::after { display: none; }
.stat-item:hover { transform: translateY(-2px); }

.stat-number {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
.stat-label {
    font-size: 0.73rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

/* ---- Cards ---- */
.card {
    border: 1px solid var(--border-light);
    box-shadow: var(--card-shadow);
    border-radius: var(--card-radius);
    transition: box-shadow var(--transition), transform var(--transition);
    background: var(--bg-card);
    overflow: hidden;
}
.card:hover {
    box-shadow: var(--card-hover-shadow);
}
.card-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
    padding: 14px 20px;
    border-radius: var(--card-radius) var(--card-radius) 0 0 !important;
}
.card-header h5,
.card-header h6 {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
}
.card-header h5 i,
.card-header h6 i {
    color: var(--accent);
    margin-right: 6px;
}
.card-body { padding: 20px; }
.card-footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
    padding: 12px 20px;
}

/* ---- Page Header ---- */
.page-header-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 32px 0 28px;
    border-bottom: none;
    margin-bottom: 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.page-header-section::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(247,184,1,0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.page-header-section h2 {
    font-weight: 800;
    margin-bottom: 6px;
    font-size: 1.6rem;
    color: #fff;
    letter-spacing: -0.01em;
}
.page-header-section h2 i {
    color: var(--gold);
    margin-right: 8px;
}
.page-header-section p {
    color: rgba(255,255,255,0.7) !important;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* ---- Breadcrumbs ---- */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 10px;
    font-size: 0.82rem;
}
.breadcrumb-item a { color: rgba(255,255,255,0.6); }
.breadcrumb-item.active { color: rgba(255,255,255,0.9); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ---- Party Color Dot / Block ---- */
.party-color-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.06);
}
.party-color-block {
    display: inline-block;
    width: 4px;
    height: 28px;
    border-radius: 2px;
    vertical-align: middle;
}
.party-symbol-sm {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 4px;
}

/* ---- Candidate Cards (Grid) ---- */
.candidate-card {
    transition: transform var(--transition), box-shadow var(--transition);
    overflow: hidden;
    border: 1px solid var(--border-light);
}
.candidate-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-hover-shadow);
}
.candidate-card-header {
    padding: 20px 15px 15px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
    position: relative;
}
.candidate-photo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 3px solid #fff;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    transition: transform var(--transition);
}
.candidate-card:hover .candidate-photo {
    transform: scale(1.05);
}
.candidate-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.candidate-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e0e0 0%, #c8c8c8 100%);
    color: #999;
    font-size: 2rem;
}
.winner-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 3px 8px;
    border-radius: 6px;
}
.candidate-name a {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.92rem;
    transition: color 0.15s;
}
.candidate-name a:hover {
    color: var(--accent);
}
.candidate-party {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.candidate-constituency {
    color: var(--text-light);
}
.vote-count {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}
.vote-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-left: 3px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.card-footer .btn {
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 5px 14px;
}

/* ---- Candidate Profile ---- */
.candidate-profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 4px solid var(--accent);
    box-shadow: 0 4px 16px rgba(230,57,70,0.2);
}
.candidate-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-photo-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e0e0 0%, #c8c8c8 100%);
    color: #999;
    font-size: 4rem;
    margin: 0 auto;
}
.stat-box {
    padding: 18px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: transform var(--transition);
}
.stat-box:hover {
    transform: translateY(-2px);
}

/* ---- Stat Cards ---- */
.stat-card {
    border-top: none;
    border-left: 4px solid var(--accent);
    transition: transform var(--transition);
}
.stat-card:hover {
    transform: translateY(-4px);
}
.stat-card .stat-number {
    font-size: 2rem;
}
.stat-card .stat-label {
    font-size: 0.72rem;
}

/* ---- Province / District Cards ---- */
.province-card {
    display: block;
    text-decoration: none;
    color: var(--text-dark);
    transition: transform var(--transition);
}
.province-card:hover {
    transform: translateY(-3px);
    color: var(--text-dark);
}
.province-card-inner {
    background: var(--bg-white);
    padding: 18px 16px;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    transition: all var(--transition);
    box-shadow: var(--card-shadow);
}
.province-card:hover .province-card-inner {
    background: #fff5f5;
    border-left-color: var(--accent-dark);
    box-shadow: var(--card-hover-shadow);
}
.province-card-inner h6 {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.province-overview-card {
    transition: transform var(--transition);
    cursor: pointer;
    border-radius: var(--card-radius);
}
.province-overview-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-hover-shadow);
}
.district-card {
    transition: transform var(--transition), box-shadow var(--transition);
}
.district-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-hover-shadow);
}
.constituency-card {
    border-left: 4px solid var(--accent);
    border-radius: var(--card-radius);
}

/* ---- Compare ---- */
.compare-table th,
.compare-table td {
    vertical-align: middle;
    min-width: 140px;
}
.compare-label {
    font-weight: 600;
    background: var(--bg-light);
    white-space: nowrap;
    width: 130px;
}
.compare-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}
.compare-photo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e0e0e0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.5rem;
}
.search-dropdown {
    position: absolute;
    z-index: 1000;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0 0 10px 10px;
    max-height: 300px;
    overflow-y: auto;
    width: calc(100% - 2rem);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.search-result-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.88rem;
    transition: background 0.15s;
}
.search-result-item:hover {
    background: #fff5f5;
}

/* ---- Live Results ---- */
.live-stat-card {
    border-left: 4px solid var(--accent);
    border-radius: var(--card-radius);
}
.live-stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.live-indicator {
    text-align: center;
}
.live-indicator i {
    font-size: 3rem;
    color: var(--accent);
    animation: pulse 1.5s infinite;
}

/* ---- News ---- */
.news-card {
    transition: transform var(--transition);
    overflow: hidden;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
}
.news-card-img {
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.news-card:hover .news-card-img {
    transform: scale(1.05);
}
.news-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-dark);
}
.featured-news-card .featured-img {
    height: 100%;
    min-height: 250px;
    object-fit: cover;
}

/* Sidebar News */
.news-sidebar-item {
    border-bottom: 1px solid var(--border-light);
}
.news-sidebar-item:last-child {
    border-bottom: none;
}
.news-sidebar-link {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-dark);
    transition: background 0.15s;
}
.news-sidebar-link:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}
.news-sidebar-img {
    width: 72px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.news-sidebar-title {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-dark);
}

/* ---- Filter Bar ---- */
.card .form-control,
.card .form-select {
    font-size: 0.85rem;
    border-radius: 8px;
    border-color: var(--border-color);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.card .form-control:focus,
.card .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(230,57,70,0.1);
}
.form-label {
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.7rem !important;
    letter-spacing: 0.05em;
}

/* ---- Embed Page ---- */
.embed-step-card .card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.embed-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Widget category headers */
.widget-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-color);
}
.widget-category-header i {
    font-size: 1rem;
    color: var(--accent);
}
.widget-category-header small {
    font-weight: 400;
    font-size: 0.75rem;
}

/* Widget filter tabs */
.widget-filter-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-left: auto;
}
.widget-filter-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition);
    white-space: nowrap;
}
.widget-filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.widget-filter-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Widget type cards */
.widget-option {
    cursor: pointer;
    border: 2px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 16px 10px;
    text-align: center;
    transition: all var(--transition);
    background: var(--bg-white);
    position: relative;
}
.widget-option:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.widget-option.selected {
    border-color: var(--accent);
    background: rgba(230, 57, 70, 0.04);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
}
.widget-option-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 8px;
    transition: transform 0.2s ease;
}
.widget-option:hover .widget-option-icon {
    transform: scale(1.1);
}
.widget-option h6 {
    font-size: 0.78rem;
    font-weight: 700;
    margin: 0 0 4px;
}
.widget-option p {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.3;
}
.widget-popular-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    color: #f59e0b;
    font-size: 0.65rem;
}

/* Quick pick buttons */
.quick-pick-btn {
    font-size: 0.78rem;
    padding: 4px 14px;
    border-radius: 20px;
    transition: all var(--transition);
}
.quick-pick-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Size presets */
.size-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.size-preset-btn {
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    min-width: 95px;
}
.size-preset-btn:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}
.size-preset-btn.active {
    border-color: var(--accent);
    background: rgba(230, 57, 70, 0.05);
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.15);
}
.size-preset-icon {
    display: block;
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.size-preset-btn.active .size-preset-icon {
    color: var(--accent);
}
.size-preset-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
}
.size-preset-desc {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* Theme buttons */
.theme-btn {
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 8px;
    padding: 7px 16px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all var(--transition);
    color: var(--text-body);
}
.theme-btn:hover {
    border-color: var(--text-muted);
}
.theme-btn.active {
    border-color: var(--accent);
    background: rgba(230, 57, 70, 0.05);
    color: var(--accent);
    font-weight: 600;
}

/* Embed mode toggle */
.embed-mode-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
}
.embed-mode-btn:hover {
    background: var(--bg-white);
    border-color: var(--primary);
    color: var(--text-primary);
}
.embed-mode-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.embed-mode-btn.active .badge {
    background: rgba(255,255,255,0.25) !important;
    color: #fff;
}

/* Code block */
.code-block-wrapper {
    position: relative;
}
.code-block-lang {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.35);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 1;
    pointer-events: none;
}

/* Preview container */
.embed-preview-container {
    transition: max-width 0.3s ease;
    margin: 0 auto;
}
.embed-preview-container.preview-desktop { max-width: 100%; }
.embed-preview-container.preview-tablet { max-width: 768px; }
.embed-preview-container.preview-mobile { max-width: 375px; }

.preview-device-btns {
    display: flex;
    gap: 2px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}
.preview-device-btn {
    background: var(--bg-white);
    border: none;
    padding: 4px 10px;
    font-size: 0.82rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition);
}
.preview-device-btn:hover {
    background: var(--bg-light);
}
.preview-device-btn.active {
    background: var(--primary);
    color: #fff;
}

/* Widget info card */
.widget-info-specs {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.widget-info-spec {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
}
.widget-info-spec:last-child {
    border-bottom: none;
}

/* Fade-in animation */
.fade-in {
    animation: embedFadeIn 0.3s ease;
}
@keyframes embedFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ad notice */
.embed-ad-notice {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.78rem;
    color: #92400e;
    margin-top: 12px;
}
.embed-ad-notice i {
    margin-right: 6px;
    color: #f59e0b;
}

/* Candidate search for embed */
.candidate-search-results {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    margin-top: 4px;
}
.candidate-search-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition);
}
.candidate-search-item:last-child { border-bottom: none; }
.candidate-search-item:hover {
    background: var(--bg-light);
}

/* Code textarea */
.code-textarea {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.82rem;
    background: #1a1a2e;
    color: #e0e0e0;
    border-radius: 10px;
    padding: 16px;
    border: none;
    resize: none;
}
.code-textarea:focus {
    background: #1a1a2e;
    color: #e0e0e0;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}

/* Preview */
.embed-preview {
    border: 2px dashed var(--border-color);
    padding: 12px;
    min-height: 100px;
    background: var(--bg-light);
    border-radius: var(--card-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sidebar guide */
.embed-steps-guide {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.embed-guide-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.embed-guide-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.embed-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.embed-features-list li {
    padding: 6px 0;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}
.embed-features-list li:last-child {
    border-bottom: none;
}
.embed-features-list li i {
    font-size: 0.9rem;
}

/* btn-accent utility */
.btn-accent {
    background: var(--accent);
    color: #fff;
    border: none;
    font-weight: 600;
}
.btn-accent:hover {
    background: #c1121f;
    color: #fff;
}

/* ---- Party Icon ---- */
.party-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ---- Ad Slots ---- */
.ad-slot {
    background: var(--bg-light);
    border: 1px dashed var(--border-color);
    border-radius: var(--card-radius);
    overflow: hidden;
    position: relative;
}
.ad-slot .ad-content {
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-slot .ad-content img.ad-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--card-radius);
}
.ad-slot .ad-link {
    display: block;
    width: 100%;
    text-decoration: none;
}
.ad-slot .ad-label {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.85);
    padding: 1px 6px;
    border-radius: 3px;
    line-height: 1.4;
    backdrop-filter: blur(4px);
}
.ad-placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 28px 16px;
    text-align: center;
    color: var(--text-muted);
}
.ad-placeholder-content i {
    font-size: 1.5rem;
    opacity: 0.35;
}
.ad-placeholder-content span {
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0.5;
}
.ad-placeholder-content small {
    font-size: 0.65rem;
    opacity: 0.35;
    letter-spacing: 0.3px;
}

/* Ad size variants */
.ad-size-leaderboard {
    min-height: 90px;
    max-width: 728px;
    margin-left: auto;
    margin-right: auto;
}
.ad-size-banner {
    min-height: 100px;
}
.ad-size-sidebar {
    min-height: 250px;
}
.ad-size-sidebar .ad-placeholder-content {
    padding: 40px 16px;
}
.ad-size-inline {
    min-height: 90px;
}
.ad-size-footer {
    min-height: 90px;
    max-width: 728px;
    margin-left: auto;
    margin-right: auto;
}

/* Ad position contexts */
.ad-pos-header {
    border: none;
    border-radius: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}
.ad-pos-header .ad-placeholder-content {
    padding: 14px 16px;
}
.ad-pos-footer {
    border: none;
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.08);
}
.ad-pos-footer .ad-placeholder-content {
    color: rgba(255,255,255,0.3);
}
.ad-pos-footer .ad-label {
    background: rgba(0,0,0,0.3);
    color: rgba(255,255,255,0.4);
}

/* ---- Footer ---- */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,.75);
    padding: 50px 0 24px;
    margin-top: 0;
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--gold), var(--success));
}
.site-footer h5 {
    color: #fff;
    font-weight: 800;
    margin-bottom: 16px;
    font-size: 1.05rem;
}
.site-footer h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 14px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.footer-links {
    padding: 0;
}
.footer-links li {
    margin-bottom: 8px;
}
.footer-links a {
    color: rgba(255,255,255,.6);
    font-size: 0.88rem;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.footer-links a:hover {
    color: var(--gold);
    transform: translateX(3px);
}
.footer-links a::before {
    content: '\203A';
    opacity: 0;
    transition: opacity 0.15s;
}
.footer-links a:hover::before {
    opacity: 1;
}
.social-links a {
    color: rgba(255,255,255,.6);
    font-size: 1.4rem;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.social-links a:hover {
    color: #fff;
    background: var(--accent);
    transform: translateY(-2px);
}
.site-footer hr {
    border-color: rgba(255,255,255,0.1);
    margin: 24px 0 16px;
}

/* ---- Pulse Animation ---- */
.pulse-badge {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ---- Table ---- */
.table {
    font-size: 0.88rem;
    color: var(--text-body);
}
.table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-color);
    padding: 10px 12px;
}
.table tbody td {
    padding: 10px 12px;
    vertical-align: middle;
    border-color: var(--border-light);
}
.table-hover tbody tr:hover {
    background: #fff8f8;
}
.party-standings-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ---- Charts ---- */
.chart-container {
    position: relative;
    width: 100%;
}

/* ---- Pagination ---- */
.pagination {
    gap: 4px;
}
.pagination .page-link {
    color: var(--text-body);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 12px;
    transition: all 0.15s;
}
.pagination .page-link:hover {
    background: var(--bg-light);
    border-color: var(--accent);
    color: var(--accent);
}
.pagination .page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(230,57,70,0.3);
}

/* ---- Progress Bars ---- */
.progress {
    background: var(--bg-light);
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
}
.progress-bar {
    border-radius: 8px;
    transition: width 0.6s ease;
}

/* ---- Buttons ---- */
.btn {
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 8px;
    transition: all var(--transition);
    letter-spacing: 0.01em;
}
.btn:hover {
    transform: translateY(-1px);
}
.btn-sm {
    font-size: 0.8rem;
    padding: 5px 12px;
}

/* ---- Badges ---- */
.badge {
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 0.72rem;
}

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
    .sidebar-nav {
        width: 280px !important;
    }
    .nav-strip-menu {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    /* Election switcher sticky offset for smaller header */
    .election-switcher-bar {
        top: 48px;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.6rem;
    }
    .hero-section {
        padding: 30px 0 25px;
    }
    .countdown-number {
        font-size: 1.6rem;
        padding: 6px 10px;
        min-width: 44px;
    }
    .countdown-separator {
        font-size: 1.2rem;
    }
    .stat-number {
        font-size: 1.4rem;
    }
    .stat-item::after { display: none; }
    .stat-item { padding: 12px 8px; }
    .candidate-card-header {
        padding: 15px 10px;
    }
    .candidate-photo {
        width: 68px;
        height: 68px;
    }
    .live-stat-number {
        font-size: 1.1rem;
    }
    .table {
        font-size: 0.82rem;
    }
    .hero-subtitle {
        font-size: 0.88rem;
    }
    .page-header-section h2 {
        font-size: 1.3rem;
    }
    .page-header-section {
        padding: 20px 0;
    }
    .card-body { padding: 14px; }
    .card-header { padding: 12px 14px; }
}

@media (max-width: 576px) {
    body { font-size: 0.9rem; }
    .countdown-timer { gap: 2px; }
    .countdown-number {
        font-size: 1.2rem;
        padding: 4px 8px;
        min-width: 36px;
    }
    .hero-buttons .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    .hero-buttons .btn-lg {
        padding: 10px 18px;
    }
    .stat-number { font-size: 1.2rem; }
    .stat-label { font-size: 0.65rem; }

    /* Top bar: stack or shrink */
    .top-bar { font-size: 0.72rem; padding: 4px 0; }
    .top-bar-left .d-flex { gap: 6px !important; }
    
    /* Election switcher — mobile offset */
    .election-switcher-bar { top: 44px; }
    .election-switcher .btn-group .btn {
        font-size: 0.68rem;
        padding: 4px 10px;
    }
    
    /* Page headers */
    .page-header-section { padding: 16px 0; }
    .page-header-section h2 { font-size: 1.1rem; }
    
    /* Tables — mobile-friendly sizing */
    .table { font-size: 0.78rem; }
    .table th, .table td { padding: 8px 6px; }
    
    /* Candidate cards */
    .candidate-photo { width: 56px; height: 56px; }
    .candidate-card-header { padding: 12px 8px; }
    
    /* Compare table — tighter on mobile */
    .compare-table th, .compare-table td { min-width: 110px; font-size: 0.78rem; padding: 8px 6px; }
    .compare-label { width: 100px; font-size: 0.75rem; }
    .compare-photo { width: 48px; height: 48px; }
    
    /* Share buttons: icons only on mobile */
    .share-btn-text { display: none; }
    
    /* News article title */
    .news-article-title { font-size: 1.3rem !important; }
    
    /* Cards more compact */
    .card-body { padding: 12px; }
    .card-header { padding: 10px 12px; }
}

/* ---- Extra small: ≤375px (compact phones) ---- */
@media (max-width: 375.98px) {
    body { font-size: 0.85rem; }
    .container { padding-left: 12px; padding-right: 12px; }
    .top-bar-left span:not(:first-child) { display: none; }
    .countdown-number { font-size: 1rem; min-width: 30px; padding: 3px 6px; }
    .countdown-separator { font-size: 0.9rem; }
    .page-header-section h2 { font-size: 1rem; }
    .hero-title { font-size: 1.2rem; }
    .candidate-photo { width: 48px; height: 48px; }
    .card-body { padding: 10px; }
    .card-header { padding: 8px 10px; }
}

/* ---- Scrollable nav-tabs (proportional page, etc.) ---- */
.nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* IE */
}
.nav-tabs::-webkit-scrollbar { display: none; }   /* Chrome/Safari */
.nav-tabs .nav-item { flex-shrink: 0; }

/* ---- Responsive map height ---- */
#nepalLeafletMap {
    height: clamp(300px, 55vh, 520px) !important;
}

/* ---- News article image cap on mobile ---- */
@media (max-width: 576px) {
    .card-img-top {
        max-height: 220px !important;
    }
}

/* ---- Results table nested scroll — better on small screens ---- */
@media (max-width: 768px) {
    .table-responsive[style*="max-height"] {
        max-height: 60vh !important;
    }
}

/* ---- Print ---- */
@media print {
    .top-bar, .main-header, .ad-slot, .ad-placeholder, .site-footer, .hero-section, 
    .election-switcher-bar, .sidebar-nav, .search-modal-overlay, canvas, 
    .btn, .pulse-badge, .nav-tabs, .offcanvas-backdrop {
        display: none !important;
    }
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    body { background: #fff; font-size: 12pt; }
    .container { max-width: 100%; }
    a { color: inherit; text-decoration: none; }
    a[href]:after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }
}

/* ---- Election Map (Leaflet) ---- */
.nepal-map-container {
    position: relative;
    width: 100%;
    overflow: visible;
}
#nepalLeafletMap {
    background: var(--bg-light);
    border-radius: var(--card-radius);
}
.province-map-label span {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #333;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.9), -1px -1px 2px rgba(255,255,255,0.9);
    white-space: nowrap;
    display: block;
    text-align: center;
}
.province-popup .leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    font-family: 'Inter', sans-serif;
}
.province-popup .leaflet-popup-tip {
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.province-legend-item:hover {
    background: var(--bg-light);
    border-radius: 4px;
    padding-left: 4px;
}
.province-map-card {
    transition: transform var(--transition), box-shadow var(--transition);
    border-left: 4px solid var(--accent);
}
.province-map-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-hover-shadow);
}

/* ---- Utility ---- */
.text-accent { color: var(--accent) !important; }
.text-gold { color: var(--gold) !important; }
.bg-accent { background-color: var(--accent) !important; }
.bg-gold { background-color: var(--gold) !important; }

section.py-4 {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
}

/* ---- Loading Skeleton ---- */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ============================================
   Hot Seats
   ============================================ */

/* --- Hot Seats Page Header Override --- */
.page-header-hotseats {
    background: linear-gradient(135deg, #1a0a0e 0%, #2d1018 20%, #4a1225 45%, #6b1a32 70%, #8c2240 100%);
    padding: 36px 0 30px;
    position: relative;
    overflow: hidden;
}
.page-header-hotseats::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(230,57,70,0.25) 0%, rgba(230,57,70,0.06) 40%, transparent 70%);
    border-radius: 50%;
    animation: hotGlow 4s ease-in-out infinite alternate;
}
.page-header-hotseats::after {
    content: '';
    position: absolute;
    bottom: -40px; left: 10%;
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(247,184,1,0.12) 0%, transparent 70%);
    border-radius: 50%;
}
@keyframes hotGlow {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.15); }
}
.page-header-hotseats h2 {
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}
.page-header-hotseats h2 i {
    color: var(--gold);
    filter: drop-shadow(0 0 6px rgba(247,184,1,0.5));
}
.page-header-hotseats p {
    color: rgba(255,255,255,0.65) !important;
    font-size: 0.88rem;
}
.page-header-hotseats .hot-seat-count-highlight {
    color: var(--gold);
    font-weight: 700;
}

/* --- Stats Bar (Hot Seats) --- */
.hot-seat-stat-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--card-shadow);
    padding: 20px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.hot-seat-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-hover-shadow);
}
.hot-seat-stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}
.hot-seat-stat-card.stat-danger::before  { background: linear-gradient(90deg, var(--accent), var(--accent-light)); }
.hot-seat-stat-card.stat-primary::before { background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.hot-seat-stat-card.stat-success::before { background: linear-gradient(90deg, var(--success), var(--success-dark)); }
.hot-seat-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.hot-seat-stat-icon.icon-danger  { background: rgba(230,57,70,0.1);  color: var(--accent); }
.hot-seat-stat-icon.icon-primary { background: rgba(27,42,74,0.1);   color: var(--primary); }
.hot-seat-stat-icon.icon-success { background: rgba(6,214,160,0.1);  color: var(--success); }
.hot-seat-stat-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.hot-seat-stat-number.text-danger  { color: var(--accent) !important; }
.hot-seat-stat-number.text-primary { color: var(--primary) !important; }
.hot-seat-stat-number.text-success { color: var(--success) !important; }
.hot-seat-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* --- Province Filter Pills --- */
.hot-seat-filters {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    padding: 14px 18px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
}
.hot-seat-filters .filter-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.hot-seat-filter {
    border-radius: 20px !important;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 16px;
    transition: all var(--transition);
    border: 1.5px solid var(--border-color) !important;
    background: var(--bg-light);
    color: var(--text-body);
    position: relative;
}
.hot-seat-filter:hover {
    border-color: var(--accent) !important;
    color: var(--accent);
    background: rgba(230,57,70,0.04);
    transform: translateY(-1px);
}
.hot-seat-filter.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark)) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(230,57,70,0.3);
    transform: translateY(-1px);
}
.hot-seat-filter .badge {
    font-size: 0.62rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
}
.hot-seat-filter.active .badge {
    background: rgba(255,255,255,0.25) !important;
    color: #fff !important;
}

/* --- Cards Grid --- */
.hot-seats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr));
    gap: 22px;
}

/* --- Card --- */
.hot-seat-card {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 6px 16px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow var(--transition), border-color var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
    animation: cardFadeIn 0.5s ease both;
}
.hot-seat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(230,57,70,0.08), 0 16px 40px rgba(0,0,0,0.06);
    border-color: rgba(230,57,70,0.3);
}

/* Staggered card animation */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.hot-seat-card:nth-child(1)  { animation-delay: 0.02s; }
.hot-seat-card:nth-child(2)  { animation-delay: 0.06s; }
.hot-seat-card:nth-child(3)  { animation-delay: 0.10s; }
.hot-seat-card:nth-child(4)  { animation-delay: 0.14s; }
.hot-seat-card:nth-child(5)  { animation-delay: 0.18s; }
.hot-seat-card:nth-child(6)  { animation-delay: 0.22s; }
.hot-seat-card:nth-child(7)  { animation-delay: 0.26s; }
.hot-seat-card:nth-child(8)  { animation-delay: 0.30s; }
.hot-seat-card:nth-child(9)  { animation-delay: 0.34s; }
.hot-seat-card:nth-child(10) { animation-delay: 0.38s; }

/* Header with constituency badge */
.hot-seat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, #1a0a0e 0%, var(--primary) 50%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}
.hot-seat-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent));
}
.hot-seat-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
    border: 1px solid rgba(255,255,255,0.12);
    transition: background var(--transition);
}
.hot-seat-card:hover .hot-seat-badge {
    background: rgba(230,57,70,0.5);
}
.hot-seat-header .badge-sm {
    font-size: 0.66rem;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.hot-seat-header .pulse-badge {
    animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(247,184,1,0.4); }
    50% { opacity: 0.85; box-shadow: 0 0 0 6px rgba(247,184,1,0); }
}

/* --- Candidates Row --- */
.hot-seat-candidates {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 16px 10px 12px;
    flex: 1;
    background: linear-gradient(180deg, rgba(248,249,251,0.5) 0%, var(--bg-card) 100%);
}

/* --- Individual Candidate Cell --- */
.hot-seat-candidate {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 6px 8px;
    border-radius: 12px;
    transition: all 0.25s ease;
    position: relative;
    background: transparent;
}
.hot-seat-candidate:hover {
    background: rgba(230,57,70,0.04);
    transform: translateY(-2px);
}
.hot-seat-leader {
    position: relative;
    background: linear-gradient(180deg, rgba(247,184,1,0.06) 0%, transparent 100%);
    border-radius: 12px;
}

/* --- Photo with Symbol Overlay --- */
.hot-seat-photo-wrap {
    position: relative;
    width: 66px;
    height: 66px;
    margin-bottom: 10px;
    flex-shrink: 0;
}
.hot-seat-photo {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    background: var(--bg-light);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.hot-seat-leader .hot-seat-photo {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(247,184,1,0.2), 0 4px 12px rgba(247,184,1,0.15);
}
.hot-seat-candidate:hover .hot-seat-photo {
    border-color: var(--accent);
    transform: scale(1.06);
    box-shadow: 0 4px 14px rgba(230,57,70,0.15);
}

/* --- Party Symbol Overlay --- */
.hot-seat-symbol {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform var(--transition);
}
.hot-seat-candidate:hover .hot-seat-symbol {
    transform: scale(1.1);
}

/* --- Winner / Leading / Favorite Badges --- */
.hot-seat-winner-badge,
.hot-seat-leading-badge,
.hot-seat-favorite-badge {
    position: absolute;
    top: -3px;
    left: -3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 2;
}
.hot-seat-winner-badge {
    background: linear-gradient(135deg, var(--success), var(--success-dark));
    animation: winnerPop 0.4s ease;
}
.hot-seat-leading-badge {
    background: linear-gradient(135deg, var(--gold), #e5a901);
    color: var(--primary);
}
.hot-seat-favorite-badge {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: #fff;
    font-size: 0.58rem;
}
@keyframes winnerPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* --- Ranking Indicator Bar --- */
.hot-seat-ranking-bar {
    padding: 5px 14px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
}
.ranking-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 2px 10px;
    border-radius: 10px;
}
.ranking-indicator i {
    font-size: 0.62rem;
}
.ranking-live {
    color: var(--accent);
    background: rgba(230,57,70,0.08);
}
.ranking-live i {
    animation: pulse 1.5s infinite;
}
.ranking-previous {
    color: var(--info);
    background: rgba(17,138,178,0.08);
}
.ranking-editorial {
    color: #8c6d1f;
    background: rgba(247,184,1,0.10);
}
.ranking-national {
    color: var(--text-muted);
    background: rgba(0,0,0,0.04);
}

/* --- Candidate Rank Number --- */
.hot-seat-rank-num {
    font-size: 0.58rem;
    font-weight: 800;
    color: var(--text-light);
    background: var(--bg-light);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    border: 1px solid var(--border-light);
    line-height: 1;
}
.hot-seat-leader .hot-seat-rank-num {
    background: var(--gold);
    color: var(--primary);
    border-color: var(--gold);
    font-weight: 800;
}

/* --- Candidate Name & Party --- */
.hot-seat-name {
    font-weight: 700;
    font-size: 0.76rem;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 100%;
    word-break: break-word;
    transition: color var(--transition);
}
.hot-seat-candidate:hover .hot-seat-name {
    color: var(--accent);
}
.hot-seat-party {
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.hot-seat-party-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 1.5px rgba(0,0,0,0.06);
}
.hot-seat-votes {
    font-size: 0.67rem;
    color: var(--accent);
    font-weight: 700;
    margin-top: 4px;
    background: rgba(230,57,70,0.06);
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.01em;
}

/* --- VS Divider between candidates --- */
.hot-seat-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 0;
}
.hot-seat-vs span {
    font-size: 0.58rem;
    font-weight: 800;
    color: var(--text-light);
    background: var(--bg-light);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
}

/* --- Footer / Details Button --- */
.hot-seat-footer {
    padding: 12px 14px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-light);
}
.hot-seat-footer .btn {
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 10px;
    letter-spacing: 0.01em;
    transition: all var(--transition);
}
.hot-seat-footer .btn-outline-danger {
    border: 1.5px solid var(--accent);
    color: var(--accent);
}
.hot-seat-footer .btn-outline-danger:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230,57,70,0.25);
}

/* --- Empty State --- */
.hot-seat-empty {
    text-align: center;
    padding: 60px 20px;
}
.hot-seat-empty-icon {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 16px;
    opacity: 0.5;
}
.hot-seat-empty-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto;
}

/* Animation for filtered cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Hot Seats Responsive ---- */
@media (max-width: 576px) {
    .page-header-hotseats {
        padding: 24px 0 20px;
    }
    .page-header-hotseats h2 {
        font-size: 1.25rem;
    }
    .hot-seats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .hot-seat-card {
        border-radius: 12px;
    }
    .hot-seat-candidates {
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
        padding: 12px 6px 8px;
    }
    .hot-seat-candidate {
        padding: 8px 3px 6px;
        border-radius: 8px;
    }
    .hot-seat-photo-wrap {
        width: 50px;
        height: 50px;
        margin-bottom: 6px;
    }
    .hot-seat-photo {
        width: 50px;
        height: 50px;
        border-width: 2px;
    }
    .hot-seat-symbol {
        width: 20px;
        height: 20px;
    }
    .hot-seat-name {
        font-size: 0.66rem;
    }
    .hot-seat-party {
        font-size: 0.6rem;
    }
    .hot-seat-party-dot {
        width: 5px;
        height: 5px;
    }
    .hot-seat-votes {
        font-size: 0.58rem;
        padding: 1px 6px;
    }
    .hot-seat-badge {
        font-size: 0.72rem;
        max-width: 210px;
        padding: 4px 10px;
    }
    .hot-seat-header {
        padding: 10px 12px;
    }
    .hot-seat-footer {
        padding: 10px 12px;
    }
    .hot-seat-stat-card {
        padding: 14px 12px;
    }
    .hot-seat-stat-number {
        font-size: 1.5rem;
    }
    .hot-seat-stat-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .hot-seat-filters {
        padding: 10px 12px;
    }
    .hot-seat-filter {
        font-size: 0.72rem;
        padding: 4px 10px;
    }
    .hot-seat-winner-badge,
    .hot-seat-leading-badge,
    .hot-seat-favorite-badge {
        width: 20px;
        height: 20px;
        font-size: 0.55rem;
    }
    .hot-seat-ranking-bar {
        padding: 4px 10px;
    }
    .ranking-indicator {
        font-size: 0.6rem;
        padding: 2px 8px;
    }
    .hot-seat-rank-num {
        width: 15px;
        height: 15px;
        font-size: 0.5rem;
        margin-bottom: 2px;
    }
}
@media (min-width: 577px) and (max-width: 768px) {
    .hot-seats-grid {
        grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
        gap: 18px;
    }
    .hot-seat-photo-wrap {
        width: 58px;
        height: 58px;
    }
    .hot-seat-photo {
        width: 58px;
        height: 58px;
    }
}
@media (min-width: 769px) and (max-width: 991px) {
    .hot-seats-grid {
        grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
    }
}

/* ============================================
   Areas & Constituencies Page - Redesigned
   Inspired by OnlineKhabar Election Portal
   ============================================ */

/* ---- Page Header ---- */
.area-page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 28px 0 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.area-page-header::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(247,184,1,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.area-page-header::after {
    content: '';
    position: absolute;
    bottom: -30px; left: 20%;
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(6,214,160,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ---- Area Title ---- */
.area-title {
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.area-title i {
    color: var(--gold);
    margin-right: 6px;
}
.area-title-np {
    display: inline-block;
    font-weight: 500;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-left: 8px;
    font-family: 'Mukta', sans-serif;
}
.area-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    margin-bottom: 0;
    margin-top: 4px;
}

/* ---- Badges ---- */
.area-hot-badge {
    background: linear-gradient(135deg, #ff6b35, #e63946) !important;
    color: #fff !important;
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    animation: hotPulse 2s infinite;
}
@keyframes hotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230,57,70,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(230,57,70,0); }
}
.area-status-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}
.area-status-completed { background: rgba(6,214,160,0.2) !important; color: #06d6a0 !important; }
.area-status-counting { background: rgba(247,184,1,0.2) !important; color: #f7b801 !important; }
.area-status-pending, .area-status- { background: rgba(255,255,255,0.15) !important; color: rgba(255,255,255,0.7) !important; }
.area-status-badge-sm {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

/* ---- Filter Dropdowns ---- */
.area-filters {
    margin-top: 4px;
}
.area-filter-select {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 0.82rem;
    border-radius: 8px;
    padding: 6px 32px 6px 12px;
    min-width: 160px;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}
.area-filter-select:focus {
    background: rgba(255,255,255,0.18);
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(247,184,1,0.2);
    color: #fff;
}
.area-filter-select option {
    background: var(--primary);
    color: #fff;
}

/* ---- Stat Cards ---- */
.area-stat-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
    transition: transform 0.2s, box-shadow 0.2s;
}
.area-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-hover-shadow);
}
.area-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}
.area-stat-info {
    display: flex;
    flex-direction: column;
}
.area-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 600;
}
.area-stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}

/* ---- Turnout Bar ---- */
.area-turnout-bar {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    padding: 16px 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
}

/* ---- Winner / Leading Card ---- */
.area-winner-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
}
.area-winner-header {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    color: #fff;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.area-winner-header i { margin-right: 6px; }
.area-winner-margin {
    font-size: 0.78rem;
    font-weight: 500;
    background: rgba(255,255,255,0.2);
    padding: 2px 10px;
    border-radius: 12px;
}
.area-winner-body {
    padding: 20px;
}
.area-winner-photo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--success);
    flex-shrink: 0;
}
.area-winner-photo-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.8rem;
    flex-shrink: 0;
}
.area-winner-info h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
}
.area-winner-info h4 a {
    color: var(--text-dark);
}
.area-winner-info h4 a:hover {
    color: var(--accent);
}
.area-party-symbol-sm {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.area-party-name {
    font-size: 0.85rem;
    color: var(--text-body);
    font-weight: 500;
}
.area-votes-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--success-dark);
}
.area-votes-pct {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 4px;
}

/* ---- Section Cards ---- */
.area-section-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
}
.area-section-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
}
.area-section-header h5 {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}
.area-section-header h5 i {
    color: var(--primary);
    margin-right: 6px;
}
.area-section-body {
    padding: 20px;
}

/* ---- Candidate Table ---- */
.area-candidate-table {
    font-size: 0.85rem;
}
.area-candidate-table thead th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    font-weight: 700;
    border-bottom: 2px solid var(--border-color);
    padding: 10px 12px;
    background: var(--bg-light);
}
.area-candidate-table tbody td {
    padding: 10px 12px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-light);
}
.area-candidate-table tbody tr:hover {
    background: var(--bg-light);
}
.area-row-winner {
    background: rgba(6,214,160,0.06) !important;
    border-left: 3px solid var(--success);
}
.area-row-winner:hover {
    background: rgba(6,214,160,0.1) !important;
}
.area-cand-photo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}
.area-cand-photo-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1rem;
    flex-shrink: 0;
}
.area-cand-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
    text-decoration: none;
}
.area-cand-name:hover {
    color: var(--accent);
}
.area-party-symbol-xs {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}
.area-party-label {
    font-size: 0.78rem;
    color: var(--text-body);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}
.area-vote-bar {
    height: 7px;
    border-radius: 4px;
    background: var(--bg-light);
}
.area-vote-bar .progress-bar {
    border-radius: 4px;
}

/* ---- Previous Election Card ---- */
.area-prev-header {
    background: var(--primary) !important;
}
.area-prev-header h5 {
    color: #fff !important;
}
.area-prev-header h5 i {
    color: var(--gold) !important;
}
.area-prev-stats {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 10px 12px;
}
.area-prev-candidate {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}
.area-prev-candidate:last-of-type {
    border-bottom: none;
}
.area-prev-winner {
    background: rgba(6,214,160,0.04);
    border-radius: 8px;
    padding: 10px 12px;
    margin: 0 -8px;
}
.area-prev-rank {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-body);
    flex-shrink: 0;
}
.area-prev-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}
.area-prev-photo-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
    flex-shrink: 0;
}
.area-prev-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
}
.area-prev-party {
    font-size: 0.7rem;
    color: var(--text-muted);
}
.area-prev-votes {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dark);
}
.area-prev-pct {
    font-size: 0.68rem;
    color: var(--text-muted);
}
.area-prev-bar {
    height: 4px;
    border-radius: 2px;
    background: var(--bg-light);
    margin-left: 36px;
}
.area-prev-bar .progress-bar {
    border-radius: 2px;
}

/* ---- Demographics ---- */
.area-demo-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    font-weight: 700;
    font-size: 0.7rem;
}
.area-demo-circle i {
    font-size: 0.9rem;
}
.area-demo-circle span {
    font-size: 1rem;
    line-height: 1;
}
.area-demo-male {
    background: rgba(17,138,178,0.1);
    color: #118ab2;
}
.area-demo-female {
    background: rgba(230,57,70,0.1);
    color: #e63946;
}
.area-demo-other {
    background: rgba(247,184,1,0.1);
    color: #f7b801;
}

/* ---- Constituency Info List ---- */
.area-info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.85rem;
}
.area-info-list li:last-child {
    border-bottom: none;
}
.area-info-label {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.8rem;
}
.area-info-list li a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.area-info-list li a:hover {
    color: var(--accent);
}

/* ---- Province Cards (All Provinces View) ---- */
.area-province-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
}
.area-province-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
}
.area-province-accent {
    height: 4px;
    width: 100%;
}
.area-province-body {
    padding: 22px 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.area-province-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.area-province-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}
.area-province-name-np {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-family: 'Mukta', sans-serif;
    display: block;
    margin-bottom: 6px;
}
.area-province-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.area-province-meta span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}
.area-province-meta span i {
    font-size: 0.7rem;
}

/* ---- District Cards (Province View) ---- */
.area-district-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.area-district-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--primary-light);
}
.area-district-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(27,42,74,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
    flex-shrink: 0;
}
.area-district-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0;
}
.area-district-name-np {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: 'Mukta', sans-serif;
}
.area-district-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ---- Constituency Cards (District View) ---- */
.area-con-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-light);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.area-con-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-hover-shadow);
}
.area-con-card-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-light);
}
.area-con-card-header h6 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Mukta', sans-serif;
}
.area-con-card-body {
    padding: 14px 16px;
    flex: 1;
}
.area-con-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}
.area-con-photo-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
    flex-shrink: 0;
}
.area-con-card-footer {
    display: block;
    text-align: center;
    padding: 10px 16px;
    background: var(--bg-light);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid var(--border-light);
    transition: background 0.2s, color 0.2s;
}
.area-con-card-footer:hover {
    background: var(--primary);
    color: #fff;
}
.area-con-card-footer i {
    font-size: 0.7rem;
    margin-left: 4px;
    transition: transform 0.2s;
}
.area-con-card-footer:hover i {
    transform: translateX(3px);
}

/* ---- Areas Responsive ---- */
@media (max-width: 767px) {
    .area-page-header {
        padding: 20px 0 18px;
    }
    .area-title {
        font-size: 1.2rem;
    }
    .area-title-np {
        display: block;
        margin-left: 0;
        margin-top: 2px;
    }
    .area-filter-select {
        min-width: 130px;
        font-size: 0.78rem;
    }
    .area-stat-card {
        padding: 14px 12px;
        gap: 10px;
    }
    .area-stat-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .area-stat-value {
        font-size: 1.05rem;
    }
    .area-winner-photo, .area-winner-photo-placeholder {
        width: 56px;
        height: 56px;
    }
    .area-winner-info h4 {
        font-size: 1rem;
    }
    .area-votes-num {
        font-size: 1.15rem;
    }
    .area-candidate-table {
        font-size: 0.78rem;
    }
    .area-cand-photo, .area-cand-photo-placeholder {
        width: 32px;
        height: 32px;
    }
    .area-party-label {
        max-width: 80px;
        font-size: 0.7rem;
    }
    .area-province-body {
        padding: 16px 14px;
    }
    .area-province-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .area-province-name {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   GLOBAL SEARCH MODAL
   ========================================================================== */

.search-trigger-btn {
    transition: all var(--transition);
}
.search-trigger-btn:hover {
    opacity: 0.85;
}

/* Overlay */
.search-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(10, 15, 30, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 8vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.search-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.search-modal {
    width: 600px;
    max-width: calc(100vw - 32px);
    max-height: 70vh;
    background: var(--bg-white);
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(-20px) scale(0.96);
    transition: transform 0.25s cubic-bezier(.175,.885,.32,1.275);
}
.search-modal-overlay.active .search-modal {
    transform: translateY(0) scale(1);
}

/* Header / Input */
.search-modal-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    gap: 12px;
}
.search-modal-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}
.search-modal-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
    flex-shrink: 0;
}
.search-modal-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    padding: 4px 0;
}
.search-modal-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}
.search-modal-kbd {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 2px 7px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    font-family: 'Inter', monospace;
    line-height: 1.4;
}
.search-modal-close {
    border: none;
    background: var(--bg-light);
    color: var(--text-muted);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
    font-size: 1rem;
}
.search-modal-close:hover {
    background: var(--accent);
    color: #fff;
}

/* Body */
.search-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    min-height: 120px;
    max-height: 50vh;
}

/* Quick Links Section */
.search-modal-quick {
    padding: 18px 22px;
}
.search-modal-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.search-modal-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.search-quick-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all var(--transition);
    border: 1px solid transparent;
}
.search-quick-link i {
    color: var(--accent);
    font-size: 1rem;
}
.search-quick-link:hover {
    background: rgba(230,57,70,0.06);
    border-color: rgba(230,57,70,0.15);
    color: var(--accent);
    transform: translateY(-1px);
}

/* Search Tips */
.search-modal-tips {
    padding: 0;
}
.search-modal-tips p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.search-modal-tips p i {
    color: var(--gold);
    font-size: 0.9rem;
}

/* Loading */
.search-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 32px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* Results */
.search-modal-results {
    padding: 0;
}
.search-result-group {
    padding: 6px 0;
}
.search-result-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 8px 22px 4px;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 22px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background var(--transition);
    cursor: pointer;
    border-left: 3px solid transparent;
}
.search-result-item:hover,
.search-result-item.active {
    background: var(--bg-light);
    color: var(--text-dark);
    border-left-color: var(--accent);
}
.search-result-photo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}
.search-result-photo-ph {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
}
.search-result-info {
    flex: 1;
    min-width: 0;
}
.search-result-name {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-name mark {
    background: rgba(247,184,1,0.35);
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
}
.search-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.search-result-party-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.search-result-votes {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
    white-space: nowrap;
}
.search-result-empty {
    text-align: center;
    padding: 40px 22px;
    color: var(--text-muted);
}
.search-result-empty i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
    opacity: 0.4;
}
.search-result-empty p {
    font-size: 0.88rem;
    margin-bottom: 4px;
}
.search-result-empty small {
    font-size: 0.78rem;
    opacity: 0.7;
}
.search-result-count {
    font-size: 0.72rem;
    color: var(--text-muted);
    padding: 6px 22px;
    text-align: right;
    border-top: 1px solid var(--border-light);
}
.search-result-viewall {
    display: block;
    text-align: center;
    padding: 12px;
    background: var(--bg-light);
    color: var(--accent);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    border-top: 1px solid var(--border-light);
    transition: all var(--transition);
}
.search-result-viewall:hover {
    background: rgba(230,57,70,0.06);
    color: var(--accent-dark);
}

/* Footer */
.search-modal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 10px 20px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-light);
    font-size: 0.72rem;
    color: var(--text-muted);
}
.search-modal-footer kbd {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 0.65rem;
    font-weight: 600;
    margin: 0 2px;
}
.search-modal-footer i {
    font-size: 0.7rem;
    margin: 0 1px;
}

/* Responsive */
@media (max-width: 767.98px) {
    .search-modal-overlay {
        padding-top: 0;
        align-items: flex-start;
    }
    .search-modal {
        max-width: 100vw;
        width: 100vw;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
    }
    .search-modal-body {
        max-height: calc(100vh - 140px);
    }
    .search-modal-links {
        grid-template-columns: repeat(2, 1fr);
    }
    .search-modal-footer {
        display: none;
    }
}

/* ==========================================================================
   HOMEPAGE — home-* prefixed styles
   ========================================================================== */

/* ---- Hero Section ---- */
.home-hero {
    background: linear-gradient(135deg, #0a1628 0%, #132040 25%, #1a3055 50%, #1e4070 75%, #244a7a 100%);
    color: #fff;
    padding: 56px 0 52px;
    position: relative;
    overflow: hidden;
}
.home-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.home-hero-bg::before {
    content: '';
    position: absolute;
    top: -120px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(230,57,70,0.18) 0%, rgba(230,57,70,0.04) 40%, transparent 70%);
    border-radius: 50%;
}
.home-hero-bg::after {
    content: '';
    position: absolute;
    bottom: -90px; left: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(6,214,160,0.12) 0%, rgba(6,214,160,0.03) 40%, transparent 70%);
    border-radius: 50%;
}

.home-hero-content { position: relative; z-index: 2; }

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(247,184,1,0.15);
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 18px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(247,184,1,0.2);
}
.home-hero-badge-done {
    background: rgba(6,214,160,0.15);
    color: #06d6a0;
    border-color: rgba(6,214,160,0.2);
}
.home-hero-badge-live {
    background: rgba(230,57,70,0.2);
    color: #ff6b6b;
    border-color: rgba(230,57,70,0.3);
    animation: homePulse 2s ease-in-out infinite;
}
@keyframes homePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.home-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
    color: #fff;
}
.home-hero-title span {
    display: block;
    color: var(--gold);
    font-size: 2.8rem;
}

.home-hero-subtitle {
    font-size: 1.02rem;
    opacity: 0.8;
    margin-bottom: 28px;
    max-width: 560px;
    line-height: 1.7;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.home-btn-primary,
.home-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--transition);
    letter-spacing: 0.01em;
}
.home-btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff;
    box-shadow: 0 4px 18px rgba(230,57,70,0.35);
}
.home-btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(230,57,70,0.45);
}
.home-btn-secondary {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.25);
}
.home-btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

/* ---- Countdown Card ---- */
.home-countdown-card {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 22px;
    padding: 36px 28px;
    text-align: center;
    position: relative;
    z-index: 2;
}
.home-countdown-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 12px;
    opacity: 0.8;
}
.home-countdown-label {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.03em;
    opacity: 0.9;
    color: #fff;
}
.home-countdown-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}
.home-cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.home-cd-num {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    background: rgba(0,0,0,0.3);
    border-radius: 14px;
    padding: 12px 18px;
    min-width: 70px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.home-cd-text {
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.55;
    margin-top: 8px;
    font-weight: 600;
    letter-spacing: 0.1em;
}
.home-cd-sep {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    opacity: 0.35;
    margin-bottom: 20px;
}
.home-countdown-date {
    margin-top: 18px;
    font-size: 0.82rem;
    opacity: 0.55;
    margin-bottom: 0;
}
.home-countdown-date i {
    margin-right: 4px;
}

/* Completed summary in hero */
.home-completed-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 8px;
}
.home-completed-stat { text-align: center; }
.home-completed-num {
    display: block;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--gold);
}
.home-completed-text {
    font-size: 0.78rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}
.home-completed-divider {
    width: 1px;
    height: 48px;
    background: rgba(255,255,255,0.15);
}

.home-live-pulse {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ff6b6b;
    animation: homePulse 1.5s ease-in-out infinite;
    padding: 20px;
}
.home-live-pulse i {
    margin-right: 8px;
}

/* ---- Stats Strip ---- */
.home-stats-strip {
    background: var(--bg-white);
    padding: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}
.home-stats-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.home-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 28px;
    position: relative;
    flex: 1 1 auto;
    min-width: 160px;
    justify-content: center;
    transition: transform var(--transition);
}
.home-stat:hover { transform: translateY(-2px); }
.home-stat::after {
    content: '';
    position: absolute;
    right: 0; top: 25%; height: 50%;
    width: 1px;
    background: var(--border-color);
}
.home-stat:last-child::after { display: none; }

.home-stat-icon {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(27,42,74,0.08);
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.home-stat-icon-accent { background: rgba(230,57,70,0.1); color: var(--accent); }
.home-stat-icon-gold { background: rgba(247,184,1,0.12); color: #d4970a; }
.home-stat-icon-fire { background: rgba(255,107,107,0.1); color: #ff6b6b; }
.home-stat-icon-success { background: rgba(6,214,160,0.1); color: #06d6a0; }
.home-stat-icon-info { background: rgba(17,138,178,0.1); color: #118ab2; }

.home-stat-data { text-align: left; }
.home-stat-num {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.home-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.06em;
}

/* ---- Main Section ---- */
.home-main {
    padding: 32px 0 48px;
}

/* ---- Section Headers ---- */
.home-section {
    margin-bottom: 32px;
}
.home-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.home-section-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.home-section-title i {
    color: var(--accent);
    font-size: 1.1rem;
}
.home-section-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all var(--transition);
}
.home-section-link:hover {
    color: var(--accent-dark);
    gap: 8px;
}

/* ---- Generic home Card ---- */
.home-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

/* ---- Hot Seats Preview Grid ---- */
.home-hotseats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.home-hs-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--card-radius);
    text-decoration: none;
    color: var(--text-dark);
    transition: all var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: homeCardFade 0.5s ease both;
}
@keyframes homeCardFade {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.home-hs-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
    color: var(--text-dark);
    border-color: var(--accent);
}
.home-hs-header {
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--border-light);
}
.home-hs-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}
.home-hs-province {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.home-hs-candidates {
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex: 1;
}
.home-hs-cand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}
.home-hs-leader { grid-column: span 2; }
.home-hs-leader .home-hs-photo,
.home-hs-leader .home-hs-photo-ph {
    width: 48px !important;
    height: 48px !important;
}

.home-hs-photo-wrap {
    position: relative;
    flex-shrink: 0;
}
.home-hs-photo {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #ccc;
}
.home-hs-photo-ph {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
    border: 2.5px solid #ccc;
}
.home-hs-symbol {
    position: absolute;
    bottom: -4px; right: -4px;
    width: 18px; height: 18px;
    object-fit: contain;
    background: #fff;
    border-radius: 4px;
    padding: 1px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.home-hs-cand-name {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-hs-cand-party {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}
.home-hs-pdot {
    width: 7px; height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.home-hs-votes {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
}
.home-hs-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--border-light);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-align: center;
}
.home-hs-card:hover .home-hs-footer {
    background: rgba(230,57,70,0.04);
}

/* ---- Party Standings Table ---- */
.home-party-table {
    font-size: 0.88rem;
}
.home-party-table thead th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 700;
    border-bottom-width: 2px;
}
.home-party-table tbody td {
    vertical-align: middle;
    padding: 10px 12px;
}
.home-chart-wrap {
    padding: 20px;
    border-top: 1px solid var(--border-light);
}

/* ---- Pre-Election Party Grid ---- */
.home-party-grid {
    display: grid;
    gap: 10px;
}
.home-party-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    animation: homeCardFade 0.5s ease both;
}
.home-party-card:hover {
    border-color: var(--party-color, var(--accent));
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transform: translateX(4px);
}
.home-party-rank {
    width: 28px; height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text-muted);
    flex-shrink: 0;
}
.home-party-info { flex: 1; min-width: 0; }
.home-party-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.home-party-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.home-party-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
}
.home-party-meta {
    display: flex;
    gap: 14px;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.home-party-meta i { margin-right: 3px; }
.home-party-wins {
    color: var(--success) !important;
    font-weight: 600;
}
.home-party-bar {
    width: 100%;
    height: 3px;
    background: var(--border-light);
    border-radius: 2px;
    position: absolute;
    bottom: 0;
    left: 0;
}
.home-party-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 1s ease;
}

/* ---- Numbers / Demographics Section ---- */
.home-numbers-card {
    padding: 20px;
    height: 100%;
}
.home-numbers-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.home-numbers-title i {
    color: var(--accent);
}

.home-gender-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.home-gender-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 70px;
    padding: 12px 8px;
    border-radius: 10px;
    background: var(--bg-light);
}
.home-gender-item i {
    font-size: 1.3rem;
}
.home-gender-male i { color: #118ab2; }
.home-gender-female i { color: #e63946; }
.home-gender-other i { color: #f7b801; }
.home-gender-num {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
}
.home-gender-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.home-gender-pct {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
}

.home-gender-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--border-light);
}
.home-gender-bar-male { background: #118ab2; }
.home-gender-bar-female { background: #e63946; }
.home-gender-bar-other { background: #f7b801; }

.home-chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 180px;
}

/* ---- Province Grid ---- */
.home-province-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.home-prov-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--card-radius);
    text-decoration: none;
    color: var(--text-dark);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    animation: homeCardFade 0.5s ease both;
}
.home-prov-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
    color: var(--text-dark);
}
.home-prov-accent {
    height: 4px;
    flex-shrink: 0;
}
.home-prov-body {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.home-prov-icon {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.home-prov-info { flex: 1; min-width: 0; }
.home-prov-name {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.3;
}
.home-prov-name-np {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: 'Mukta', sans-serif;
}
.home-prov-meta {
    display: flex;
    gap: 12px;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.home-prov-meta i { margin-right: 3px; }

/* ---- Sidebar Cards ---- */
.home-sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}
.home-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light);
}
.home-sidebar-header h6 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.home-sidebar-header h6 i {
    color: var(--accent);
}
.home-sidebar-link {
    font-size: 0.78rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.home-sidebar-link:hover { text-decoration: underline; }
.home-sidebar-body {
    padding: 18px;
}

/* ---- Quick Nav ---- */
.home-quicknav { padding: 0; }
.home-quicknav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all var(--transition);
    border-bottom: 1px solid var(--border-light);
}
.home-quicknav-item:last-child { border-bottom: none; }
.home-quicknav-item:hover {
    background: var(--bg-light);
    color: var(--text-dark);
    padding-left: 22px;
}
.home-qn-icon {
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.home-qn-text {
    flex: 1;
    min-width: 0;
}
.home-qn-text strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
}
.home-qn-text small {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.home-quicknav-item > .bi-chevron-right {
    color: var(--text-muted);
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: transform var(--transition);
}
.home-quicknav-item:hover > .bi-chevron-right {
    transform: translateX(4px);
    color: var(--accent);
}

/* ---- News List ---- */
.home-news-list { padding: 0; }
.home-news-item {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background var(--transition);
    border-bottom: 1px solid var(--border-light);
    align-items: flex-start;
}
.home-news-item:last-child { border-bottom: none; }
.home-news-item:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

/* Featured first article */
.home-news-featured {
    flex-direction: column;
    gap: 0;
}
.home-news-img-wrap {
    margin: -14px -18px 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
}
.home-news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.home-news-featured:hover .home-news-img {
    transform: scale(1.04);
}
.home-news-content { flex: 1; min-width: 0; }
.home-news-title {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-news-featured .home-news-title {
    font-size: 1rem;
    -webkit-line-clamp: 3;
}
.home-news-meta {
    display: flex;
    gap: 12px;
    font-size: 0.72rem;
    color: var(--text-muted);
}
.home-news-source {
    font-weight: 600;
    color: var(--accent);
}
.home-news-thumb {
    width: 72px;
    height: 52px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

/* ---- Info Card ---- */
.home-info-card {
    border-left: 4px solid var(--primary);
}
.home-info-body {
    padding: 20px 18px;
}
.home-info-icon {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 10px;
}
.home-info-body h6 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.home-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.home-info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-light);
    font-size: 0.82rem;
}
.home-info-list li:last-child { border-bottom: none; }
.home-info-list li span { color: var(--text-muted); }
.home-info-list li strong {
    font-weight: 700;
    color: var(--text-dark);
}

/* ---- Embed Promo Card ---- */
.home-embed-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%) !important;
    border: none !important;
}
.home-embed-body {
    padding: 24px 20px;
    text-align: center;
}
.home-embed-icon {
    font-size: 2rem;
    color: var(--gold);
    display: block;
    margin-bottom: 10px;
}
.home-embed-body h6 {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
}
.home-embed-body p {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    margin-bottom: 14px;
}

/* ---- Ad Responsive ---- */
@media (max-width: 767.98px) {
    .ad-size-leaderboard,
    .ad-size-footer {
        max-width: 100%;
        min-height: 60px;
    }
    .ad-size-sidebar {
        min-height: 150px;
    }
    .ad-placeholder-content {
        padding: 18px 12px;
    }
    .ad-placeholder-content i {
        font-size: 1.2rem;
    }
}

/* ---- Homepage Responsive ---- */
@media (max-width: 991.98px) {
    .home-hero {
        padding: 36px 0 32px;
    }
    .home-hero-title {
        font-size: 1.9rem;
    }
    .home-hero-title span {
        font-size: 2.1rem;
    }
    .home-countdown-card {
        margin-top: 28px;
    }
    .home-hotseats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .home-stats-grid {
        justify-content: flex-start;
    }
    .home-stat {
        min-width: 140px;
        padding: 16px 20px;
    }
}

@media (max-width: 767.98px) {
    .home-hero {
        padding: 28px 0 24px;
        text-align: center;
    }
    .home-hero-title {
        font-size: 1.6rem;
    }
    .home-hero-title span {
        font-size: 1.8rem;
    }
    .home-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .home-hero-actions {
        justify-content: center;
    }
    .home-btn-primary,
    .home-btn-secondary {
        padding: 10px 20px;
        font-size: 0.88rem;
    }
    .home-countdown-card {
        padding: 24px 16px;
        margin-top: 24px;
    }
    .home-cd-num {
        font-size: 2rem;
        min-width: 54px;
        padding: 10px 12px;
    }
    .home-cd-sep {
        font-size: 1.6rem;
    }
    .home-hotseats-grid {
        grid-template-columns: 1fr;
    }
    .home-stats-grid {
        gap: 0;
    }
    .home-stat {
        min-width: 50%;
        padding: 14px 16px;
    }
    .home-stat::after {
        display: none;
    }
    .home-stat-num {
        font-size: 1.4rem;
    }
    .home-province-grid {
        grid-template-columns: 1fr;
    }
    .home-main {
        padding: 20px 0 32px;
    }
    .home-section {
        margin-bottom: 24px;
    }
    .home-completed-stats {
        gap: 16px;
    }
    .home-completed-num {
        font-size: 1.8rem;
    }
}

@media (max-width: 575.98px) {
    .home-hero-title {
        font-size: 1.35rem;
    }
    .home-hero-title span {
        font-size: 1.5rem;
    }
    .home-hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .home-btn-primary,
    .home-btn-secondary {
        width: 100%;
        justify-content: center;
    }
    .home-stat {
        min-width: 50%;
    }
    .home-cd-num {
        font-size: 1.6rem;
        min-width: 46px;
        padding: 8px 10px;
    }
    .home-cd-sep {
        font-size: 1.3rem;
    }
    .home-hs-candidates {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .home-hs-leader {
        grid-column: span 2;
    }
    .home-gender-stats {
        gap: 8px;
    }
}

/* ═══════════════════════════════════════════════
   NEWS PAGE — Distinct Header Design
   White/light "newsroom" style header to differentiate
   from the dark navy header used on other pages.
   ═══════════════════════════════════════════════ */

/* Top bar — darker accent bar for news brand */
.page-news .top-bar {
    background: #1a1a1a;
    border-bottom: 2px solid var(--accent);
}

/* Brand bar — white background with dark text */
.page-news .main-nav {
    background: #ffffff !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: none;
}
.page-news .main-nav .navbar-brand {
    color: var(--text-dark);
}
.page-news .main-nav .brand-text strong {
    color: var(--primary);
}
.page-news .main-nav .brand-text small {
    color: var(--text-muted);
    opacity: 1;
}
.page-news .main-nav .search-trigger-btn {
    color: var(--text-body) !important;
}
.page-news .main-nav .search-trigger-btn:hover {
    color: var(--accent) !important;
}
.page-news .main-nav .sidebar-toggle-btn {
    color: var(--text-body) !important;
}

/* Nav strip — light gray with accent underlines */
.page-news .nav-strip {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}
.page-news .nav-strip-link {
    color: var(--text-body);
    font-weight: 500;
}
.page-news .nav-strip-link i {
    opacity: 0.6;
    color: var(--text-muted);
}
.page-news .nav-strip-link:hover {
    color: var(--accent);
    background: rgba(230, 57, 70, 0.04);
    border-bottom-color: var(--accent-light);
}
.page-news .nav-strip-link:hover i {
    opacity: 1;
    color: var(--accent);
}
.page-news .nav-strip-link.active {
    color: var(--accent);
    font-weight: 700;
    background: rgba(230, 57, 70, 0.06);
    border-bottom-color: var(--accent);
}
.page-news .nav-strip-link.active i {
    color: var(--accent);
    opacity: 1;
}
.page-news .nav-strip-sep {
    background: var(--border-color);
}

/* Header shadow — softer for white header */
.page-news .main-header {
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

/* Election switcher bar — subtle accent border */
.page-news .election-switcher-bar {
    border-bottom-color: rgba(230, 57, 70, 0.15);
}

/* Sidebar offcanvas — accent-tinted header */
.page-news .sidebar-header {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-bottom: 3px solid var(--primary);
}

/* Mobile: ensure hamburger is visible */
@media (max-width: 991.98px) {
    .page-news .main-nav .sidebar-toggle-btn i {
        color: var(--primary) !important;
    }
}

/* ── Nepal Flag Election Banner ── */
.news-election-banner {
    background: linear-gradient(135deg, #DC143C 0%, #b71130 40%, #003893 60%, #002766 100%);
    padding: 10px 0;
    border-bottom: 3px solid #ffd54f;
    position: relative;
    overflow: hidden;
}
.news-election-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,0.03) 0px,
        rgba(255,255,255,0.03) 10px,
        transparent 10px,
        transparent 20px
    );
    pointer-events: none;
}
.news-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,213,84,0.6);
    flex-shrink: 0;
}
.news-banner-icon i {
    font-size: 1.3rem;
    color: #ffd54f;
}
.news-banner-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    padding: 4px 14px;
    flex-shrink: 0;
}
.news-banner-days {
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffd54f;
    line-height: 1.1;
}
.news-banner-days-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
@media (max-width: 575.98px) {
    .news-election-banner { padding: 8px 0; }
    .news-banner-icon { width: 36px; height: 36px; }
    .news-banner-icon i { font-size: 1rem; }
    .news-banner-days { font-size: 1.1rem; }
}

/* ── News Alert Scroll (replaces <marquee>) ── */
.news-alert-scroll {
    overflow: hidden;
    width: 100%;
}
.news-alert-track {
    display: inline-block;
    white-space: nowrap;
    animation: newsAlertScroll 40s linear infinite;
}
@keyframes newsAlertScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Share Buttons — responsive icons-only on mobile ── */
@media (max-width: 576px) {
    .share-btn-text { display: none; }
}
