/* Modal Styles */
.cv-contest-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.cv-contest-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
    padding: 15px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cv-contest-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cv-contest-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #222;
}

.cv-contest-thumb img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.cv-contest-excerpt {
    font-size: 14px;
    color: #555;
    margin: 8px 0;
}

.cv-contest-votes {
    font-weight: bold;
    margin: 10px 0;
}

.cv-vote-btn {
    background: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s ease;
}

.cv-vote-btn:hover {
    background: #005f8d;
}

.cv-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.cv-modal {
    background: #fff;
    padding: 20px 25px;
    border-radius: 12px;
    text-align: center;
    max-width: 350px;
    width: 90%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    animation: slideUp 0.3s ease;
}

.cv-modal h2 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #0073aa;
}

.cv-modal p {
    margin-bottom: 15px;
    font-size: 16px;
}

.cv-modal-close {
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: bold;
}

.cv-modal-close:hover {
    background: #005f8d;
}
.cv-vote-count-input{ width:20% !important; margin:0 auto;}
/* Simple animations */
@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}