/* Winner Box */
.sec-winner-box {
    background: #f8f9fa;
    border-left: 4px solid #BF1E2E;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin: 1rem 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.sec-winner-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #BF1E2E;
    flex-shrink: 0;
}
.sec-winner-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sec-winner-details {
    flex: 1;
}
.sec-winner-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.sec-winner-party {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}
.sec-winner-votes {
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.sec-winner-badge {
    background: #BF1E2E;
    color: #fff;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 2rem;
    font-weight: 600;
    display: inline-block;
}
.sec-winner-margin {
    font-size: 0.9rem;
    color: #28a745;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Winner tag in candidate row */
.sec-winner-tag {
    background: #BF1E2E;
    color: #fff;
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 2rem;
    margin-left: 0.5rem;
    display: inline-block;
    vertical-align: middle;
}
.sec-winner-row {
    background: rgba(191, 30, 46, 0.05);
}
/* Card outer background tint */
.sec-outer-card {
    background-color: #FBF1F1;
    border-radius: 1rem;
    padding: 1.5rem;
}

/* Inner white card */
.sec-inner-card {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Header */
.sec-header {
    padding: 1rem 1.5rem;
}
.sec-constituency-number {
    color: #BF1E2E;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0;
}
.sec-district-label {
    color: #BF1E2E;
    font-size: 1rem;
}
.sec-header hr {
    margin: 0.5rem 0 0 0;
    border: 0;
    border-top: 2px solid #BF1E2E;
    opacity: 1;
}

/* Candidate list */
.sec-candidate-list {
    padding: 1rem 1.5rem;
}
.sec-candidate-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}
.sec-candidate-row:last-child {
    border-bottom: none;
}
.sec-candidate-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
    flex-shrink: 0;
}
.sec-candidate-info {
    flex: 1;
    min-width: 0;
}
.sec-candidate-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sec-party-name {
    font-size: 0.875rem;
    color: #6c757d;
}
.sec-votes {
    font-size: 0.875rem;
    color: #BF1E2E;
    font-weight: 500;
    margin-left: 0.5rem;
    white-space: nowrap;
}
.sec-party-symbol {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Card footer */
.sec-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.sec-detail-btn {
    background-color: #BF1E2E;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-block;
}
.sec-detail-btn:hover {
    background-color: #a01826;
    color: #fff;
}
.sec-social-icons {
    display: flex;
    gap: 0.5rem;
}
.sec-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
}
.sec-social-icon.facebook {
    background-color: #1877f2;
}
.sec-social-icon.x {
    background-color: #000;
}
.sec-social-icon span {
    font-weight: bold;
}

/* Search bar */
.sec-search {
    margin-bottom: 2rem;
}
.sec-search input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 2rem;
    font-size: 1rem;
}

/* Voter stats cards */
.sec-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.sec-stat-card {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 1rem 1.5rem;
    flex: 1 1 200px;
    text-align: center;
}
.sec-stat-card .label {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}
.sec-stat-card .value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #BF1E2E;
}

/* Map image */
.sec-map {
    margin-bottom: 2rem;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.sec-map img {
    width: 100%;
    height: auto;
    display: block;
}

/* Local bodies table */
.sec-local-bodies {
    margin-top: 1.5rem;
    padding: 0 1.5rem 1.5rem;
}
.sec-local-bodies h4 {
    color: #BF1E2E;
    margin-bottom: 1rem;
}
.sec-local-bodies table {
    width: 100%;
    border-collapse: collapse;
}
.sec-local-bodies th,
.sec-local-bodies td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.sec-local-bodies th {
    font-weight: 600;
    color: #495057;
}
.sec-local-bodies td:last-child a {
    color: #BF1E2E;
    text-decoration: none;
    font-weight: 500;
}
.sec-local-bodies td:last-child a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .sec-outer-card {
        padding: 1rem;
    }
    .sec-candidate-row {
        flex-wrap: wrap;
    }
    .sec-candidate-name {
        white-space: normal;
    }
}