.old-poll-layout {
    border: 1px solid #ddd;
    background: #fff;
    margin: 1rem;
}

.old-poll-layout label.d-block {
    display: table !important;
    width: 100%;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.old-poll-layout .option {
    display: table-cell;
    vertical-align: middle;
    position: relative;
    width: 100%;
}

.old-poll-layout .option-content {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    min-height: 4.6rem;
}

.old-poll-layout .option-value {
    padding: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px; 
}

.old-poll-layout .percent {
    padding: 1rem;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

.old-poll-layout .option.voted {
    background-color: #e5f6ff;
}
.poll-question-wrapper {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.old-poll-wrapper {
    border: 1px solid #ddd;
    background: #f1f1f1;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.poll-question-wrapper h2.h5,
.old-poll-wrapper h2.h5 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
    border: none;
    padding: 10px;
}
.poll .poll-modern-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 10px;
    background: transparent;
}

.poll .poll-modern-layout .poll-card-item {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    margin: 0;
    position: relative;
}

.poll .poll-modern-layout .poll-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.poll .poll-modern-layout .poll-card-item:hover .poll-zoom-icon {
    opacity: 1;
}

@media (max-width: 992px) {
    .poll .poll-modern-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .poll .poll-modern-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}
.poll .poll-modern-layout .poll-image-container {
    width: 100%;
    height: 280px;
    position: relative;
    background: #f9f9f9;
    overflow: hidden;
}

.poll .poll-modern-layout .poll-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.poll .poll-modern-layout .float-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 6;
    background: linear-gradient(135deg, #006b40 0%, #00965e 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    text-align: center;
    pointer-events: none;
}

.poll .poll-modern-layout .poll-number {
    font-size: 1.2rem;
    font-weight: 900;
    display: block;
    line-height: 1;
}

.poll .poll-modern-layout .poll-count {
    font-size: 0.7rem;
    display: block;
    opacity: 0.9;
}

.poll .poll-modern-layout .poll-zoom-icon {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 113, 68, 0.6);
    display: flex;
    align-items: center; 
    justify-content: center;
    color: #fff;
    font-size: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

@media (max-width: 768px) {
    .poll .poll-modern-layout .poll-image-container {
        height: 200px;
    }
}
.poll .poll-modern-layout .poll-content-area {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    border-top: 0!important;
}

.poll .poll-modern-layout .poll-info-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.poll .poll-modern-layout .poll-option-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}
.mfp-counter {
    right: 50px;
}
.mfp-bottom-bar {
    margin-top: -60px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    cursor: auto;
}

.mfp-bg {
    background: rgba(0, 0, 0, 0.85);
}

.mfp-wrap {
    z-index: 99999999;
}

.mfp-figure img.mfp-img {
    border-radius: 15px;
    padding: 0;
    border: 4px solid #fff;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    max-height: 65vh !important;
}

.mfp-title {
    font-family: "arimo", sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    color: #fff;
    text-align: center;
    padding: 21px 10px 16px 20px !important;
    position: relative;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.8) 100%);
    border-radius: 0 0 15px 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin: 0px 4px;
}

.mfp-bottom-bar {
    margin-top: -60px;
    position: relative;
    z-index: 1046;
}

.mfp-iframe-holder .mfp-close, 
.mfp-image-holder .mfp-close {
    background: #007144;
    color: #fff !important;
    width: 45px;
    height: 45px;
    line-height: 45px;
    border-radius: 10px;
    top: 20px;
    right: 20px;
    opacity: 1;
    text-align: center;
    padding: 0;
}

.mfp-arrow {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .mfp-content {
        max-width: 92vw;
    }
    
    .mfp-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        line-height: 35px;
    }
}
.text-center button.btn-primary {
    background: linear-gradient(135deg, #006e42 0%, #6dc866 100%);
    border: none;
    padding: 15px 50px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0, 110, 66, 0.2);
}

.btn-success {
    background-color: #27ae60;
    border-radius: 50px;
    padding: 10px 25px;
    color: #fff;
    font-weight: 700;
    border: none;
}

@media (max-width: 768px) {
    .poll .poll-modern-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .poll .poll-modern-layout .poll-image-container {
        height: 200px;
    }

    .mfp-content {
        max-width: 92vw;
    }
    
    .mfp-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        line-height: 35px;
    }
}