/* ==========================================================================
   PNW Single Constituency Stylesheet
   Modern layout matching official constituency design specifications
   ========================================================================== */

.constituency-single-wrapper {
    background-color: #f8fafc;
    min-height: 100vh;
    padding-bottom: 60px;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
}

/* --------------------------------------------------------------------------
   1. Hero Banner Section
   -------------------------------------------------------------------------- */
.constituency-hero {
    position: relative;
    background-color: #0b1e3b;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 35px 0 45px 0;
    overflow: hidden;
}

.constituency-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #07152b 0%, rgba(11, 30, 59, 0.95) 45%, rgba(11, 30, 59, 0.75) 75%, rgba(11, 30, 59, 0.4) 100%);
    z-index: 1;
}

.constituency-hero-inner {
    position: relative;
    z-index: 2;
}

/* Breadcrumbs */
.constituency-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 18px;
}

.constituency-breadcrumbs a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.15s ease;
}

.constituency-breadcrumbs a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.constituency-breadcrumbs .crumb-sep {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
}

.constituency-breadcrumbs .crumb-current {
    color: #ffffff;
    font-weight: 600;
}

/* Hero Titles */
.constituency-hero-title-area {
    margin-bottom: 16px;
}

.constituency-hero-title-area h1 {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.constituency-location-subtitle {
    font-size: 14.5px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0 0 16px 0;
    font-weight: 400;
}

.constituency-location-subtitle i {
    color: #38bdf8;
    font-size: 14px;
}

.constituency-location-subtitle .sep-bullet {
    color: rgba(255, 255, 255, 0.35);
}

/* Hero Badges / Pills */
.constituency-hero-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.constituency-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

.constituency-pill.pill-primary {
    background-color: #0284c7;
    color: #ffffff;
}

.constituency-pill.pill-dark {
    background-color: rgba(15, 23, 42, 0.7);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.constituency-pill.pill-dark:hover {
    background-color: rgba(15, 23, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------------------
   2. Floating Stats Bar (4-Card Metric Grid)
   -------------------------------------------------------------------------- */
.constituency-stats-bar-wrapper {
    margin-top: -24px;
    margin-bottom: 28px;
    position: relative;
    z-index: 5;
}

.constituency-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.constituency-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.constituency-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

.stat-card-content {
    min-width: 0;
}

.stat-card-val {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    margin: 0 0 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-card-label {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
}

/* --------------------------------------------------------------------------
   3. Main Body Two-Column Grid
   -------------------------------------------------------------------------- */
.constituency-body-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 24px;
    align-items: start;
}

/* Reusable Card Style */
.c-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.c-box:last-child {
    margin-bottom: 0;
}

.c-section-heading {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 18px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 4px solid #2563eb;
    padding-left: 10px;
    line-height: 1.2;
}

/* --------------------------------------------------------------------------
   4. Left Column - Section 1: About Card
   -------------------------------------------------------------------------- */
.c-about-split {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 20px;
    align-items: center;
}

.c-about-body {
    font-size: 13.5px;
    line-height: 1.68;
    color: #334155;
    margin: 0;
}

.c-about-image-wrap {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.c-about-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --------------------------------------------------------------------------
   5. Left Column - Section 2: Constituency Map & Key Areas
   -------------------------------------------------------------------------- */
.c-map-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: center;
}

.c-map-visual-wrap {
    position: relative;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}

.c-map-compass {
    position: absolute;
    top: 12px;
    right: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #0f172a;
    font-size: 11px;
    font-weight: 700;
    pointer-events: none;
    z-index: 2;
}

.c-map-compass i {
    font-size: 14px;
    margin-bottom: 2px;
}

.c-map-art-svg {
    width: 100%;
    height: 100%;
    max-height: 200px;
}

.c-map-details-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.c-key-areas-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px 0;
}

.c-key-areas-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.c-key-areas-list li {
    font-size: 13px;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}

.c-key-areas-list li i {
    color: #2563eb;
    font-size: 12px;
    width: 14px;
    text-align: center;
}

.c-btn-explore-map {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    transition: all 0.15s ease;
}

.c-btn-explore-map:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* --------------------------------------------------------------------------
   6. Left Column - Section 3: News & Updates (2x2 Grid)
   -------------------------------------------------------------------------- */
.c-news-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.c-news-header h3 {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.c-news-header .c-view-all-link {
    font-size: 12.5px;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.c-news-header .c-view-all-link:hover {
    text-decoration: underline;
}

.c-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.c-news-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.c-news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.c-news-thumb-wrap {
    width: 100%;
    height: 140px;
    background: #e2e8f0;
    overflow: hidden;
}

.c-news-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.c-news-card:hover .c-news-thumb-wrap img {
    transform: scale(1.03);
}

.c-news-content {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.c-news-tag {
    font-size: 10px;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.c-news-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.c-news-meta {
    font-size: 11px;
    color: #94a3b8;
    margin-top: auto;
}

/* --------------------------------------------------------------------------
   7. Right Sidebar - Card 1: Current MLA / MP
   -------------------------------------------------------------------------- */
.c-rep-profile-row {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

.c-rep-avatar-wrap {
    width: 82px;
    height: 82px;
    border-radius: 10px;
    overflow: hidden;
    background: #e2e8f0;
    flex-shrink: 0;
    border: 1px solid #cbd5e1;
}

.c-rep-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.c-rep-info-block {
    min-width: 0;
}

.c-rep-name {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
    line-height: 1.25;
}

.c-rep-name a {
    color: inherit;
    text-decoration: none;
}

.c-rep-name a:hover {
    color: #2563eb;
}

.c-rep-party {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.c-rep-party img {
    height: 14px;
    width: auto;
    max-width: 20px;
    object-fit: contain;
}

.c-rep-winner-badge {
    background: #16a34a;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 14px;
    display: inline-block;
    line-height: 1.2;
}

.c-rep-meta-table {
    width: 100%;
    font-size: 12.5px;
    border-collapse: collapse;
    margin: 10px 0 14px 0;
}

.c-rep-meta-table td {
    padding: 4px 0;
    vertical-align: top;
}

.c-rep-meta-table .col-label {
    width: 95px;
    color: #64748b;
    font-weight: 500;
}

.c-rep-meta-table .col-sep {
    width: 12px;
    color: #94a3b8;
}

.c-rep-meta-table .col-val {
    color: #0f172a;
    font-weight: 600;
}

.c-btn-full-profile {
    display: block;
    width: 100%;
    background: #0f172a;
    color: #ffffff;
    text-align: center;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.15s ease;
}

.c-btn-full-profile:hover {
    background: #2563eb;
}

/* --------------------------------------------------------------------------
   8. Right Sidebar - Card 2: Quick Links
   -------------------------------------------------------------------------- */
.c-box.c-quick-links-box {
    padding: 0;
    overflow: hidden;
}

.c-quick-links-header {
    background: #0a1e3f;
    color: #ffffff;
    padding: 12px 18px;
    font-size: 14.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 4px solid #38bdf8;
}

.c-quick-links-list {
    list-style: none;
    padding: 6px 0;
    margin: 0;
}

.c-quick-links-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    font-size: 13px;
    color: #334155;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease, color 0.15s ease;
}

.c-quick-links-list li:last-child a {
    border-bottom: none;
}

.c-quick-links-list li a:hover {
    background: #f8fafc;
    color: #2563eb;
}

.c-quick-links-list li a i {
    width: 16px;
    color: #0284c7;
    font-size: 13px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   9. Right Sidebar - Card 3: Constituency Snapshot
   -------------------------------------------------------------------------- */
.c-snapshot-table {
    width: 100%;
    font-size: 12.5px;
    border-collapse: collapse;
    margin-bottom: 14px;
}

.c-snapshot-table td {
    padding: 5px 0;
    vertical-align: top;
}

.c-snapshot-table .col-label {
    width: 105px;
    color: #64748b;
    font-weight: 500;
}

.c-snapshot-table .col-sep {
    width: 12px;
    color: #94a3b8;
}

.c-snapshot-table .col-val {
    color: #0f172a;
    font-weight: 600;
}

.c-snapshot-notice {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 11.5px;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

.c-snapshot-notice i {
    font-size: 13px;
    color: #3b82f6;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   10. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .constituency-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .constituency-body-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .c-about-split {
        grid-template-columns: 1fr;
    }
    
    .c-about-image-wrap {
        height: 180px;
    }
    
    .c-map-split {
        grid-template-columns: 1fr;
    }
    
    .c-news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .constituency-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .constituency-hero-title-area h1 {
        font-size: 24px;
    }
    
    .constituency-stat-card {
        padding: 14px;
    }
}
