/* 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; /* prevent overflow */
}
.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 i {
    font-size: 1.2rem;
}
/* If no icon font, you can use background images, but we'll use text fallback */
.sec-social-icon span {
    font-weight: bold;
}

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