.helpful-poll-container {
    clear: both;
    margin: 20px 0;
    padding: 0;
}

.helpful-poll {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 400px;
    margin: 0 auto;
}

.helpful-poll h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.helpful-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 0 0 15px 0;
    flex-wrap: wrap;
}

.helpful-btn {
    background: #e9373e;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    min-width: 100px;
}

.helpful-btn:hover:not(:disabled) {
    background: #005a87;
}

.helpful-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.helpful-yes {
    background: #4CAF50;
}

.helpful-yes:hover:not(:disabled) {
    background: #45a049;
}

.helpful-no {
    background: #f44336;
}

.helpful-no:hover:not(:disabled) {
    background: #da190b;
}

.helpful-message {
    margin: 0 0 10px 0;
    font-weight: bold;
}

.helpful-privacy {
    font-size: 12px;
    color: #666;
    margin: 15px 0 0 0;
    line-height: 1.4;
}

.helpful-most-viewed-container {
    margin: 20px auto;
    clear: both;
    max-width: 800px;
}

.helpful-most-viewed-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.helpful-article-item {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.helpful-article-item:hover {
    border-color: #e9373e;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.15);
    transform: translateY(-1px);
}

.helpful-article-link {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    text-decoration: none;
    color: #000 !important;
    min-height: 60px;
}

.helpful-article-link:hover {
    text-decoration: none;
    color: #e9373e;
}

.helpful-article-title {
    flex: 1;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.4;
    margin-right: 12px;
}

.helpful-article-meta {
    font-size: 12px;
    color: #666;
    margin-right: 12px;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    line-height: 1.3;
}

.helpful-article-meta .reading-time {
    font-weight: 500;
    color: #e9373e;
    font-size: 11px;
}

.helpful-article-arrow {
    color: #e9373e;
    font-size: 18px;
    font-weight: bold;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.helpful-article-item:hover .helpful-article-arrow {
    opacity: 1;
}

/* Responsive design */
@media (max-width: 768px) {
    .helpful-most-viewed-grid {
        grid-template-columns: 1fr;
    }
    
    .helpful-article-link {
        padding: 14px 16px;
        min-height: 50px;
    }
    
    .helpful-article-title {
        font-size: 14px;
    }
}

/* Empty state */
.helpful-most-viewed-empty {
    margin: 20px 0;
}

/* Stacked popular posts view with ratings */
.helpful-popular-posts-container {
    margin: 20px auto;
    max-width: 800px;
}

.helpful-popular-post-item {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.helpful-popular-post-item:hover {
    border-color: #e9373e;
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.15);
    transform: translateY(-1px);
}

.helpful-popular-post-link {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 20px;
    text-decoration: none;
    color: #000 !important;
}

.helpful-popular-post-link:hover {
    text-decoration: none;
    color: #333;
}

.helpful-popular-post-content {
    flex: 1;
    padding-right: 20px;
}

.helpful-popular-post-title {
    font-weight: 600;
    font-size: 17px;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.helpful-popular-post-link:hover .helpful-popular-post-title {
    color: #e9373e;
}

.helpful-popular-post-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 0;
}

.helpful-popular-post-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    min-width: 120px;
}

.helpful-popular-post-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.helpful-popular-post-rating-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    text-align: center;
}

.helpful-popular-post-arrow {
    color: #e9373e;
    font-size: 24px;
    font-weight: bold;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    margin-top: auto;
    align-self: flex-end;
}

.helpful-popular-post-item:hover .helpful-popular-post-arrow {
    opacity: 1;
}

.helpful-article-views {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    text-align: center;
    line-height: 1.3;
}

.helpful-article-views .reading-time {
    font-weight: 500;
    color: #e9373e;
    display: block;
    margin-top: 2px;
}

/* Dot rating style */
.helpful-dot-rating {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.helpful-dot {
    font-size: 12px;
    line-height: 1;
}

.helpful-dot-filled {
    color: #e9373e;
}

.helpful-dot-empty {
    color: #d5d5d5;
}

/* Responsive design for stacked popular posts */
@media (max-width: 768px) {
    .helpful-popular-post-link {
        flex-direction: column;
    }
    
    .helpful-popular-post-content {
        padding-right: 0;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .helpful-popular-post-meta {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }
    
    .helpful-popular-post-rating {
        margin-bottom: 0;
    }
    
    .helpful-popular-post-title {
        font-size: 16px;
    }
    
    .helpful-popular-post-excerpt {
        font-size: 13px;
    }
}

/* Pagination styles */
.helpful-pagination {
    margin: 40px 0 30px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.helpful-pagination-info {
    font-size: 14px;
    color: #666;
    text-align: center;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e9ecef;
    font-weight: 500;
}

.helpful-pagination-nav {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    background: #ffffff;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.helpful-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    line-height: 1;
}

.helpful-pagination-btn:hover {
    background: #e9373e !important;
    border-color: #e9373e !important;
    color: white !important;
    text-decoration: none;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 20px rgba(233, 55, 62, 0.3);
    z-index: 2;
}

.helpful-pagination-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.helpful-pagination-current {
    background: #e9373e;
    border-color: #e9373e;
    color: white;
    cursor: default;
    box-shadow: 0 2px 8px rgba(233, 55, 62, 0.25);
}

.helpful-pagination-current:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(233, 55, 62, 0.25);
}

.helpful-pagination-prev,
.helpful-pagination-next {
    width: auto;
    min-width: 44px;
    padding: 0 16px;
    border-radius: 22px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.helpful-pagination-prev:hover,
.helpful-pagination-next:hover {
    background: #e9373e !important;
    border-color: #e9373e !important;
    color: white !important;
    text-decoration: none;
    transform: translateY(-2px);
    scale: 1.02;
    box-shadow: 0 4px 20px rgba(233, 55, 62, 0.3);
}

.helpful-pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #adb5bd;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 1px;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .helpful-pagination {
        margin: 30px 0 20px 0;
        gap: 15px;
    }
    
    .helpful-pagination-nav {
        gap: 4px;
        padding: 10px 16px;
        border-radius: 20px;
    }
    
    .helpful-pagination-btn {
        width: 36px;
        height: 36px;
        font-size: 13px;
        border-width: 1px;
    }
    
    .helpful-pagination-prev,
    .helpful-pagination-next {
        min-width: 40px;
        padding: 0 12px;
        border-radius: 18px;
        font-size: 12px;
    }
    
    .helpful-pagination-dots {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .helpful-pagination-info {
        font-size: 13px;
        padding: 6px 12px;
        border-radius: 16px;
    }
    
    .helpful-pagination-btn:hover {
        background: #e9373e !important;
        border-color: #e9373e !important;
        color: white !important;
        text-decoration: none;
        transform: translateY(-1px) scale(1.02);
        box-shadow: 0 4px 20px rgba(233, 55, 62, 0.3);
    }
}

@media (max-width: 480px) {
    .helpful-pagination-nav {
        gap: 3px;
        padding: 8px 12px;
    }
    
    .helpful-pagination-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .helpful-pagination-prev,
    .helpful-pagination-next {
        min-width: 36px;
        padding: 0 10px;
        border-radius: 16px;
        font-size: 11px;
    }
    
    .helpful-pagination-dots {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* Smooth scroll behavior for pagination navigation */
html {
    scroll-behavior: smooth;
}

/* Scroll target anchors */
#helpful-content-anchor,
#helpful-pagination-anchor {
    scroll-margin-top: 80px; /* Offset for better visual positioning */
}