/* 
 * Single State Page Styles 
 */

.state-single-wrapper {
    background: #f8fafc;
    min-height: 100vh;
    padding-bottom: 50px;
    font-family: 'Inter', sans-serif;
}

/* Hero Section */
.state-hero {
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 60px 0 100px 0;
}

.state-hero-inner {
    position: relative;
    z-index: 10;
}

.breadcrumbs {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.hero-title-area h1 {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-title-area .local-name {
    font-size: 24px;
    font-weight: 400;
    opacity: 0.8;
}

.hero-title-area .subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0 0 40px 0;
}

.hero-meta-grid {
    display: grid;
    grid-template-columns: repeat(5, auto);
    gap: 30px;
    max-width: 800px;
    margin-bottom: 30px;
}

.hero-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hero-meta-item i {
    font-size: 18px;
    margin-top: 3px;
    opacity: 0.8;
}

.hero-meta-item .label {
    display: block;
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 3px;
}

.hero-meta-item .val {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.btn-explore-map {
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 10px 24px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-explore-map:hover {
    background: rgba(255,255,255,0.1);
}

/* Floating Stats */
.state-floating-stats {
    display: flex;
    justify-content: space-between;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    margin-top: -50px;
    position: relative;
    z-index: 20;
    margin-bottom: 40px;
}

.stat-box {
    text-align: center;
    padding: 0 15px;
    border-right: 1px solid #e2e8f0;
    flex: 1;
}

.stat-box:last-child {
    border-right: none;
}

.stat-box .stat-icon i {
    font-size: 24px;
    margin-bottom: 10px;
}

.stat-box h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
    color: #0f172a;
}

.stat-box p {
    margin: 0;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
}

/* Grid Layout & Cards */
.state-row {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.state-row-1 { grid-template-columns: 2fr 1.2fr; }
.state-row-2 { grid-template-columns: 1fr 1fr 1fr; }
.state-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.state-row-4 { grid-template-columns: 2fr 1fr; }

.state-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
}

.card-header h2 {
    margin: 0;
    font-size: 18px;
    color: #0f172a;
}

.view-all {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.btn-text {
    display: inline-block;
    color: #2563eb;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.btn-outline-wide {
    display: block;
    text-align: center;
    border: 1px solid #e2e8f0;
    padding: 12px;
    border-radius: 6px;
    color: #2563eb;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    margin-top: 20px;
}

/* Government Section */
.gov-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gov-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.gov-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.gov-card img {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 10px;
}

.gov-card h4 {
    margin: 0 0 5px 0;
    font-size: 13px;
    color: #0f172a;
}

.gov-card p {
    margin: 0;
    font-size: 11px;
    color: #64748b;
}

/* About Section */
.about-desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

.about-list li {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.about-list li i {
    width: 20px;
    color: #94a3b8;
    margin-right: 10px;
}

.about-list li span {
    color: #64748b;
    flex-grow: 1;
}

.about-list li strong {
    color: #0f172a;
}

/* Political Overview Chart */
.overview-text {
    font-size: 13px;
    color: #475569;
    margin-bottom: 20px;
}

.chart-container {
    position: relative;
    height: 150px;
    width: 100%;
    margin-bottom: 10px;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 11px;
    color: #475569;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    display: inline-block;
    margin-right: 5px;
}

/* Stats List */
.stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stats-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    color: #475569;
}

.stats-list li i {
    width: 20px;
    color: #94a3b8;
    margin-right: 10px;
}

.stats-list li strong {
    color: #0f172a;
}

/* Map Section */
.map-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 250px;
}

/* Districts Grid */
.districts-grid {
      display: flex;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    flex-direction: column;
}

.district-card {
    display: flex;
    gap: 15px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px;
}

.district-card img {
       width: 120px;
    height: 110px;
    border-radius: 6px;
    object-fit: cover;
}

.dist-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #0f172a;
}

.major-city {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-bottom: 10px;
}

.dist-stats {
    display: flex;
    gap: 15px;
    font-size: 10px;
    color: #64748b;
    margin-bottom: 10px;
}

.dist-stats strong {
    font-size: 14px;
    color: #0f172a;
}

.view-dist-link {
    font-size: 12px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

/* Constituencies */
.constituencies-list {
    display: flex;
    flex-direction: column;
}

.c-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.c-title {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
}

.c-count {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
}

.c-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: #475569;
    font-size: 13px;
}

.c-item:hover {
    color: #0f172a;
}

/* Leaders Row */
.leader-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.leader-row img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.l-info {
    flex-grow: 1;
}

.l-info h4 {
    margin: 0 0 3px 0;
    font-size: 14px;
    color: #0f172a;
}

.l-info span {
    font-size: 11px;
    color: #64748b;
}

.l-party .p-name {
    font-size: 11px;
    font-weight: 600;
    color: #2563eb;
}

/* Election Results */
.election-result-card {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.election-result-card h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #0f172a;
}

.election-result-card .badge {
    background: #fef3c7;
    color: #d97706;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 10px;
}

.election-result-card .date {
    font-size: 11px;
    color: #64748b;
    margin: 0 0 15px 0;
}

.party-results {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.p-res {
    font-size: 16px;
}

/* News List */
.news-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.news-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
}

.news-item img {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.n-info h4 {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #0f172a;
    line-height: 1.4;
}

.n-info .date {
    font-size: 11px;
    color: #64748b;
}

/* Parties List */
.party-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.party-item img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.party-item .p-name {
    flex-grow: 1;
    font-size: 13px;
    color: #0f172a;
    font-weight: 600;
}

.party-item .p-count {
    background: #dcfce7;
    color: #16a34a;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* Explore Bottom Grid */
.state-explore-bottom {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #e2e8f0;
}

.state-explore-bottom h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #0f172a;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.explore-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.explore-grid a i {
    color: #94a3b8;
}

.explore-grid a:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.explore-grid a:hover i {
    color: #2563eb;
}

/* Responsive Overrides */
@media(max-width: 1024px) {
    .state-row-1, .state-row-2, .state-row-3, .state-row-4 {
        grid-template-columns: 1fr;
    }
    .state-floating-stats {
        flex-wrap: wrap;
    }
    .stat-box {
        flex: 1 1 calc(25% - 20px);
        margin-bottom: 20px;
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 15px;
    }
    .explore-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .news-list {
        grid-template-columns: 1fr;
    }
}
@media(max-width: 768px) {
    .state-hero {
        padding: 40px 0 120px 0;
        text-align: center;
    }
    .hero-meta-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        justify-items: center;
        text-align: center;
    }
    .state-floating-stats {
        margin: -80px auto 30px auto;
        padding: 20px;
        flex-direction: column;
    }
    .stat-box {
        flex: 1 1 100%;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 15px;
        margin-bottom: 15px;
        justify-content: flex-start;
    }
    .stat-box:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    .explore-grid {
        grid-template-columns: 1fr 1fr;
    }
    .districts-grid {
        grid-template-columns: 1fr;
    }
    .election-result-card .party-results {
        flex-wrap: wrap;
    }
}
@media(max-width: 480px) {
    .explore-grid {
        grid-template-columns: 1fr;
    }
}
