.live-election-section {
    padding: 34px 0 24px;
    background: #fff;
    color: #111;
}

.live-election-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.live-election-head h2 {
    margin: 0;
    color: #111;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 800;
}

.live-election-head p,
.live-election-updated,
.live-election-source {
    margin: 5px 0 0;
    color: #5c5c5c;
    font-size: 14px;
}

.live-election-tabs {
    display: flex;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 28px;
    padding: 8px;
    border: 1px solid #dfdfdf;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}

.live-election-tabs button {
    min-width: 110px;
    padding: 12px 28px;
    color: #9a9a9a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.live-election-tabs button.active {
    color: #fff;
    background: #000;
}

.live-election-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(250px, 1fr));
    gap: 18px;
    overflow-x: auto;
    padding: 4px 2px 14px;
    scroll-snap-type: x proximity;
}

.live-election-card {
    min-width: 250px;
    padding: 24px 24px 22px;
    background: var(--card-bg, #fff);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    scroll-snap-align: start;
}

.live-election-card header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.live-election-card h3 {
    margin: 0;
    color: #111;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 800;
}

.live-election-card header span {
    color: #555;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.live-seat-line {
    margin: 14px 0 10px;
    color: #555;
    font-size: 17px;
    font-weight: 700;
}

.live-seat-line b {
    color: #c50024;
}

.live-majority-bar {
    position: relative;
    height: 11px;
    margin: 12px 0 4px;
    overflow: visible;
    border-radius: 999px;
    background: #e8eef0;
}

.live-majority-bar span {
    position: absolute;
    top: -8px;
    width: 0;
    height: 28px;
    border-left: 4px dotted #333;
}

.live-majority-label {
    margin-left: 50%;
    color: #444;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
}

.live-election-card table {
    width: 100%;
    margin-top: 14px;
    border-collapse: collapse;
    color: #111;
}

.live-election-card th {
    padding: 5px 4px;
    font-size: 13px;
    text-align: center;
    text-transform: uppercase;
}

.live-election-card th:first-child,
.live-election-card td:first-child {
    text-align: left;
}

.live-election-card td {
    padding: 6px 4px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.live-election-card td:first-child {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
}

.live-election-card td i {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.live-breakdown {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    color: #111;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: underline;
}

.live-election-source a {
    color: #002e5b;
}

@media (max-width: 1199px) {
    .live-election-grid {
        grid-template-columns: repeat(5, minmax(280px, 1fr));
    }
}

@media (max-width: 991px) {
    .live-election-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow-x: visible;
    }

    .live-election-card {
        min-width: 0;
    }
}

@media (max-width: 767px) {
    .live-election-section {
        padding: 26px 0 18px;
    }

    .live-election-head {
        display: block;
    }

    .live-election-head h2 {
        font-size: 26px;
    }

    .live-election-tabs {
        width: 100%;
        justify-content: space-between;
        padding: 6px;
    }

    .live-election-tabs button {
        min-width: 0;
        flex: 1;
        padding: 10px 8px;
        font-size: 18px;
    }

    .live-election-grid {
        grid-template-columns: 1fr;
    }

    .live-election-card {
        padding: 20px;
    }

    .live-election-card h3 {
        font-size: 23px;
    }
}
