.contest-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 30px;
   
}

.contest-card {
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
}

.contest-card-inner {
    display: flex;
    gap: 20px;
    align-items: center;
}

.contest-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 20px;
    background: #ddd;
}

.contest-content {
    flex: 1;
}

.contest-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contest-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.contest-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contest-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.contest-votes {
    color: #2563eb;
    font-weight: 600;
}

.vote-btn {
    font-size: 14px;
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.vote-btn:hover {
    background: #1e4ed8;
}

.vote-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}

.login-msg {
    font-size: 13px;
    color: #999;
}

.contest-header {
    text-align: left;
    margin-bottom: 60px;
}

.contest-wrapper {
    margin: 50px 0px;
}

.contest-header h2 {
    margin-bottom: 0px;
    font-size: 20px;
    font-weight: 400;
}

p.contest-desc {
    padding-bottom: 10px;
    border-bottom: 2px solid #eeee;
}

h3.contest-title {
    margin: 0px;
}

.contest-card:hover {
    transform: translateY(-4px);
}

.contest-header h7 {
    color: #757575ee;
}


.contest-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.stat-box {
    background: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    text-align: center;
    min-width: 150px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.stat-number {
    height: 50px;
    display: block;
    font-size: 38px;
    font-weight: bold;
    color: #2563eb;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: #777;
    margin-top: 5px;
}

@media (max-width: 768px) {

    .contest-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contest-card {
        padding: 16px;
        border-radius: 16px;
    }

    .contest-card-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .contest-image img {
        width: 100%;
        height: auto;
        max-height: 250px;
        border-radius: 16px;
    }

    .contest-title {
        font-size: 18px;
    }

    .contest-desc {
        font-size: 13px;
    }

    .contest-footer {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }

    .vote-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .contest-header {
        display: flex;
        text-align: left;
        margin-bottom: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .contest-header h2 {
        font-size: 18px;
    }

    .contest-wrapper {
        margin: 30px 0;
    }

    .contest-stats {
    margin-top: 20px;
}

.contest-content {
    width: -webkit-fill-available;
}
}