
.hnf-election-wrap {
    width: 100%;
    background: #fff;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    direction: rtl;
}

.hnf-election-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #222;
    padding: 15px 10px;
}

.hnf-election-main {
    display: flex;
    align-items: stretch;
    direction: ltr;
}

.hnf-election-bar {
    display: flex;
    flex: 1;
    direction: ltr;
}

.hnf-election-party {
    flex: 1;
    min-width: 140px;
    color: #fff;
    padding: 12px;
    position: relative;
}

.hnf-election-logo {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
    margin-bottom: 8px;
}

.hnf-election-party-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.hnf-election-seats {
    font-size: 20px;
    font-weight: 700;
    margin-top: 8px;
}

.hnf-election-summary {
    width: 350px;
    padding: 5px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-right: 1px solid #ddd;
}

.hnf-summary-box {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hnf-summary-label {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    padding-bottom: 12px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 12px;
}

.hnf-summary-value {
    font-size: 22px;
    font-weight: 700;
    color: #111;
}

.hnf-summary-logo {
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hnf-summary-logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.hnf-election-note {
    padding: 10px 15px;
    text-align: right;
    color: #d60000;
    font-size: 14px;
    border-top: 1px solid #eee;
}

/* Mobile */
@media (max-width: 768px) {

    .hnf-election-main {
        flex-direction: column;
    }

    .hnf-election-bar {
        overflow-x: auto;
    }

    .hnf-election-party {
        flex: 0 0 120px;
        min-width: 120px;
    }

    .hnf-election-summary {
        width: 100%;
        padding: 15px 10px;
        border-right: 0;
        border-top: 1px solid #ddd;
    }

    .hnf-election-title {
        font-size: 20px;
    }

    .hnf-election-party-name {
        font-size: 16px;
    }

    .hnf-election-seats {
        font-size: 18px;
    }

    .hnf-summary-value {
        font-size: 20px;
    }

    .hnf-summary-logo img {
        width: 55px;
        height: 55px;
    }
}