/**
 * Max Pro Petition - Frontend Styles
 * Version: 2.0.0
 * Modern frontend styling for petition templates
 */

/* Global Counter Styles */
.mpp-global-counter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    color: white;
    text-align: center;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mpp-global-counter:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
}

.mpp-global-counter-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.mpp-global-counter-icon {
    font-size: 2.5em;
    opacity: 0.9;
}

.mpp-global-counter-text {
    text-align: left;
}

.mpp-global-counter-title {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 5px;
    font-weight: 500;
}

.mpp-global-counter-number {
    font-size: 2.2em;
    font-weight: 700;
    line-height: 1;
}

/* Modal styles */
.mpp-modal {
  display: none;
    position: fixed;
    top: 0;
    left: 0;
  width: 100%;
  height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
  align-items: center;
  justify-content: center;
    padding: 20px;
}

.mpp-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
  width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mpp-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
}

.mpp-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
  font-weight: 600;
  color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mpp-modal-close {
    background: none;
    border: none;
  font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: all 0.3s ease;
  display: flex;
    align-items: center;
  justify-content: center;
    width: 32px;
    height: 32px;
}

.mpp-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

.mpp-modal-body {
    padding: 25px;
}

/* Form styling */
.mpp-form-group {
    margin-bottom: 20px;
}

.mpp-form-group label {
    display: block;
    margin-bottom: 8px;
  font-weight: 600;
    color: #374151;
  font-size: 0.9rem;
}

.mpp-form-group input {
  width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.mpp-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Share modal specific styles */
.mpp-share-url-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.mpp-share-url-container input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #f8fafc;
  color: #64748b;
}

.mpp-share-url-container button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
  border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.mpp-share-url-container button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-1px);
}

.mpp-social-share {
  display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.mpp-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
  border-radius: 8px;
    font-weight: 600;
  cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.mpp-share-fb {
    background: #1877f2;
    color: #fff;
}

.mpp-share-fb:hover {
    background: #166fe5;
    color: #fff;
    transform: translateY(-1px);
}

.mpp-share-tw {
    background: #1da1f2;
    color: #fff;
}

.mpp-share-tw:hover {
    background: #1a91da;
    color: #fff;
    transform: translateY(-1px);
}

.mpp-share-wa {
    background: #25d366;
    color: #fff;
}

.mpp-share-wa:hover {
    background: #22c55e;
    color: #fff;
    transform: translateY(-1px);
}

.mpp-share-em {
    background: #ea4335;
    color: #fff;
}

.mpp-share-em:hover {
    background: #dc2626;
    color: #fff;
    transform: translateY(-1px);
}

/* Button states */
.mpp-button.loading {
    position: relative;
  pointer-events: none;
}

.mpp-button.loading::after {
  content: '';
    position: absolute;
    top: 50%;
    left: 50%;
  width: 16px;
  height: 16px;
    margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Message styles */
.mpp-message {
    padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 15px;
    font-weight: 500;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
  from { 
    opacity: 0;
        transform: translateY(-10px);
  }
  to { 
    opacity: 1;
        transform: translateY(0);
    }
}

.mpp-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #34d399;
}

.mpp-message.error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #f87171;
}

.mpp-message.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #60a5fa;
}

/* Comments carousel */
.mpp-comments-container {
    position: relative;
}

.mpp-comment-slide {
    display: none;
}

.mpp-comment-slide:first-child {
    display: block;
}

.mpp-carousel-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
}

.mpp-carousel-prev,
.mpp-carousel-next {
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mpp-carousel-prev:hover,
.mpp-carousel-next:hover {
    background: #5a67d8;
}

.mpp-carousel-counter {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
    .mpp-modal {
        padding: 10px;
    }
    
    .mpp-modal-content {
        max-width: 100%;
        margin: 0;
    }
    
    .mpp-modal-header {
        padding: 15px 20px;
    }
    
    .mpp-modal-body {
        padding: 20px;
    }
    
    .mpp-share-url-container {
    flex-direction: column;
    }
    
    .mpp-social-share {
        grid-template-columns: 1fr;
    }
    
    .mpp-share-btn {
        padding: 15px 16px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .mpp-modal-content,
    .mpp-message,
    .mpp-button {
        animation: none;
    transition: none;
  }
  
    .mpp-button:hover {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .mpp-modal-content {
        border: 2px solid #000;
    }
    
    .mpp-button {
        border: 2px solid currentColor;
    }
    
    .mpp-form-group input {
        border-width: 2px;
    }
}

/* Print styles */
@media print {
    .mpp-modal,
    .mpp-button {
        display: none !important;
    }
}

/* Max Pro Petition - Frontend Styles */
/* Version: 2.0.0 */

/* Share Modal Styles */
.share-modal .swal2-html-container {
    margin: 1rem 0;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.share-option:hover {
    border-color: #667eea;
    background-color: #f8fafc;
    transform: translateY(-2px);
}

.share-option i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.share-option span {
    font-weight: 600;
    font-size: 0.9rem;
}

.share-option:nth-child(1) i { color: #1877f2; } /* Facebook */
.share-option:nth-child(2) i { color: #1da1f2; } /* Twitter */
.share-option:nth-child(3) i { color: #ea4335; } /* Email */
.share-option:nth-child(4) i { color: #10b981; } /* Copy Link */

.share-url {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background: #f8fafc;
    border-radius: 8px;
    padding: 0.75rem;
}

.share-url input {
    flex: 1;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.5rem;
    font-size: 0.9rem;
    background: #ffffff;
}

.copy-url-btn {
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.copy-url-btn:hover {
    background: #5a67d8;
}

/* Comments Carousel Improvements */
.mpp-comments-carousel {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-top: 1.5rem;
}

.mpp-comments-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem 0;
        font-size: 1.1rem;
    color: #1e293b;
    font-weight: 600;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.mpp-comments-title i {
    color: #667eea;
}

.mpp-comments-container {
    position: relative;
    min-height: 120px;
}

.mpp-comment-slide {
    display: none;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #10b981;
    animation: fadeIn 0.3s ease;
}

.mpp-comment-slide:first-child {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mpp-comment-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.mpp-comment-author i {
    color: #667eea;
}

.mpp-comment-content {
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.mpp-comment-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: right;
}

.mpp-comment-date i {
    font-size: 0.75rem;
}

.mpp-carousel-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.mpp-carousel-prev,
.mpp-carousel-next {
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.mpp-carousel-prev:hover,
.mpp-carousel-next:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.mpp-carousel-prev:active,
.mpp-carousel-next:active {
    transform: translateY(0);
}

.mpp-carousel-counter {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    background: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

/* Comments Section for Single Petition */
.petition-comments {
    margin-top: 3rem;
    padding: 2rem;
    border-top: 2px solid #e2e8f0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.petition-comments h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: #1e293b;
}

.petition-comments h3 i {
    color: #667eea;
}

.comment-verification-notice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #92400e;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-verification-notice i {
    color: #f59e0b;
    font-size: 1.1rem;
}

.comment-form {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
  margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.75rem;
    font-family: inherit;
  font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 1rem;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.comment-list {
    margin-top: 2rem;
}

.comment-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.comment-author {
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-author i {
    color: #667eea;
    font-size: 0.9rem;
}

.comment-date {
    font-size: 0.8rem;
    color: #94a3b8;
}

.comment-content {
    color: #374151;
    line-height: 1.6;
    font-size: 0.95rem;
}

.comment-verified-badge {
    background: #10b981;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .share-options {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .share-option {
        flex-direction: row;
        justify-content: flex-start;
        gap: 1rem;
    }
    
    .share-option i {
        margin-bottom: 0;
    }
    
    .share-url {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .mpp-carousel-nav {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .mpp-carousel-prev,
    .mpp-carousel-next {
        width: 100%;
        justify-content: center;
    }
    
    .comment-form {
        padding: 1rem;
    }
    
    .comment-item {
        padding: 1rem;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .petition-comments {
        padding: 1rem;
        margin: 2rem 1rem;
    }
}

/* Animation for counter updates */
.mpp-counter-number {
    transition: all 0.3s ease;
}

.mpp-counter-number.updating {
    transform: scale(1.1);
    color: #10b981;
}

/* Button states */
.mpp-button.supported {
    background: #dd3331 !important;
    color: #ffffff !important;
    cursor: not-allowed;
}
.mpp-cause-support-btn.supported {
    /* background: #27ae60 !important; */
    pointer-events: none;
    cursor: not-allowed;
}
.mpp-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.mpp-button.loading .btn-text {
    opacity: 0.7;
}

/* Loading spinner */
.mpp-button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    right: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* SweetAlert2 Customizations */
.swal2-popup {
    border-radius: 12px !important;
}

.swal2-title {
    color: #1e293b !important;
    font-weight: 600 !important;
}

.swal2-html-container {
    color: #64748b !important;
}

.swal2-confirm {
    background: #667eea !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}

.swal2-cancel {
    background: #9ca3af !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}

.swal2-input {
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 0.75rem !important;
}

.swal2-input:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

/* SweetAlert2 Responsive Styles */
@media (max-width: 768px) {
    .swal2-popup {
        width: 90% !important;
        max-width: 400px !important;
        margin: 20px auto !important;
        padding: 20px !important;
        border-radius: 16px !important;
        font-size: 14px !important;
    }
    
    .swal2-title {
        font-size: 1.2rem !important;
        margin-bottom: 15px !important;
        line-height: 1.3 !important;
    }
    
    .swal2-html-container {
        font-size: 14px !important;
        line-height: 1.4 !important;
        margin: 15px 0 !important;
    }
    
    .swal2-input {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 12px 16px !important;
        margin: 10px 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .swal2-confirm,
    .swal2-cancel {
        font-size: 16px !important;
        padding: 12px 24px !important;
        margin: 8px 4px !important;
        min-width: 80px !important;
        border-radius: 8px !important;
    }
    
    .swal2-actions {
        margin-top: 20px !important;
        gap: 10px !important;
    }
    
    .swal2-icon {
        margin: 20px auto 15px !important;
    }
    
    .swal2-icon.swal2-success {
        transform: scale(0.8) !important;
    }
    
    .swal2-icon.swal2-error {
        transform: scale(0.8) !important;
    }
    
    .swal2-icon.swal2-warning {
        transform: scale(0.8) !important;
    }
    
    .swal2-icon.swal2-info {
        transform: scale(0.8) !important;
    }
}

@media (max-width: 480px) {
    .swal2-popup {
        width: 95% !important;
        max-width: 350px !important;
        padding: 16px !important;
        margin: 10px auto !important;
    }
    
    .swal2-title {
        font-size: 1.1rem !important;
        margin-bottom: 12px !important;
    }
    
    .swal2-html-container {
        font-size: 13px !important;
        margin: 12px 0 !important;
    }
    
    .swal2-input {
        font-size: 16px !important;
        padding: 10px 14px !important;
        margin: 8px 0 !important;
    }
    
    .swal2-confirm,
    .swal2-cancel {
        font-size: 15px !important;
        padding: 10px 20px !important;
        margin: 6px 3px !important;
        min-width: 70px !important;
    }
    
    .swal2-actions {
        margin-top: 16px !important;
        gap: 8px !important;
    }
    
    .swal2-icon {
        margin: 16px auto 12px !important;
        transform: scale(0.7) !important;
    }
}

/* Ensure SweetAlert2 is always on top */
.swal2-container {
    z-index: 99999 !important;
    padding: 10px !important;
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .swal2-input {
        font-size: 16px !important;
    }
    
    .swal2-confirm,
    .swal2-cancel {
        font-size: 16px !important;
        -webkit-appearance: none !important;
        border-radius: 8px !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .swal2-popup {
        background: #1f2937 !important;
        color: #f9fafb !important;
    }
    
    .swal2-title {
        color: #f9fafb !important;
    }
    
    .swal2-html-container {
        color: #d1d5db !important;
    }
    
    .swal2-input {
        background: #374151 !important;
        border-color: #4b5563 !important;
        color: #f9fafb !important;
    }
    
    .swal2-input:focus {
        border-color: #667eea !important;
        background: #374151 !important;
    }
}

/* Cool Petition Title */
.mpp-petition-header {
    margin-bottom: 24px;
    position: relative;
}

.mpp-title-container {
    position: relative;
    display: inline-block;
}

h1.mpp-petition-title {
font-size: 2.5rem;
font-weight: 400;
border-bottom: 1px solid #333;
padding: 10px;
}
/* .mpp-petition-title { */
    /* font-size: 2.5rem; */
    /* font-weight: 400; */
    /* color: #1e293b; */
    /* margin: 0; */
    /* line-height: 1.2; */
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%); */
    /* background-clip: text; */
    /* -webkit-background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
    /* position: relative; */
    /* z-index: 2; */
    /* text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
/* } */

/* .mpp-title-accent { */
    /* position: absolute; */
    /* bottom: -8px; */
    /* left: 0; */
    /* right: 0; */
    /* height: 4px; */
    /* background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%); */
    /* border-radius: 2px; */
    /* z-index: 1; */
    /* box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3); */
/* } */

/* Advanced Petition Meta Information */
.mpp-petition-meta {
    /* background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); */
    border-bottom: 1px solid #e2e8f0;
    /* border-radius: 10px; */
    padding: 12px;
    margin: 12px 0;
    /* box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); */
}

.mpp-meta-grid {
    display: flex;
    /* flex-wrap: wrap; Allow wrapping instead of nowrap */
    gap: 2px;
    margin-bottom: 16px;
    overflow-x: visible; /* Remove horizontal scroll */
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.mpp-meta-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.mpp-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    flex: 0 1 180px; /* Allow shrinking and growing */
    min-width: 140px;
    max-width: none; /* Remove max-width restriction */
    white-space: normal; /* Allow text to wrap */
    word-break: break-word;
}

.mpp-meta-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.mpp-meta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    color: white;
    font-size: 11px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.mpp-meta-content {
    flex: 1;
    min-width: 0;
}

.mpp-meta-label {
    font-size: 0.6rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1px;
}

.mpp-meta-value {
    font-size: 0.75rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.2;
}

.mpp-meta-time {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 2px;
}

.mpp-category-badges {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mpp-category-badges::-webkit-scrollbar {
    display: none;
}

.mpp-category-badge {
    display: inline-block;
    padding: 3px 8px;
    background: var(--mpp-category-badge-bg, #667eea);
    color: var(--mpp-category-badge-text, #fff);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mpp-category-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.mpp-author-name {
    font-weight: 600;
    color: #667eea;
}

.mpp-reading-time {
    font-weight: 600;
    color: #10b981;
}

.mpp-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.mpp-status-badge i {
    font-size: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Tags Section */
.mpp-tags-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 12px;
    margin-top: 12px;
}

.mpp-tags-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.mpp-tags-header i {
    color: #667eea;
    font-size: 14px;
}

.mpp-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mpp-tag-link {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mpp-tag-link:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
    color: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* Tags and Categories Section */
.mpp-tags-categories-section {
    margin-top: 20px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e6f3ff 100%);
    border-color: rgba(102, 126, 234, 0.2);
}

.mpp-tags-categories-section .mpp-meta-item {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(102, 126, 234, 0.15);
}

.mpp-tags-categories-section .mpp-meta-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mpp-petition-meta {
        padding: 8px;
        margin: 8px 0;
    }
    
    .mpp-meta-grid {
        gap: 6px;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        flex-wrap: wrap;
        overflow-x: visible;
    }
    
    .mpp-meta-item {
        padding: 6px 8px;
        min-width: 120px;
        max-width: none;
        white-space: normal;
        word-break: break-word;
    }
    
    .mpp-meta-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .mpp-meta-label {
        font-size: 0.55rem;
    }
    
    .mpp-meta-value {
        font-size: 0.7rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .mpp-reading-time {
        font-size: 0.65rem;
    }
    
    .mpp-category-badge {
        padding: 2px 5px;
        font-size: 0.6rem;
    }
    
    .mpp-tags-list {
        gap: 5px;
    }
    
    .mpp-tag-link {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .mpp-petition-title {
        font-size: 2rem;
    }
    
    .mpp-title-accent {
        height: 3px;
        bottom: -6px;
    }
}

@media (max-width: 480px) {
    .mpp-petition-title {
        font-size: 1.75rem;
    }
    
    .mpp-title-accent {
        height: 2px;
        bottom: -4px;
    }
    
    .mpp-petition-meta {
        padding: 8px;
        margin: 8px 0;
    }
    
    .mpp-meta-grid {
        gap: 6px;
    }
    
    .mpp-meta-item {
        padding: 6px 8px;
        min-width: 120px;
        max-width: 140px;
    }
    
    .mpp-meta-icon {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .mpp-meta-label {
        font-size: 0.55rem;
    }
    
    .mpp-meta-value {
        font-size: 0.7rem;
    }
    
    .mpp-category-badge {
        padding: 2px 5px;
        font-size: 0.6rem;
    }
}

/* Layout and structure styles restored from template <style> blocks */

/* Mobile-First Layout - Content Above, Sidebar Below */
.petition-layout {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    margin: 0 auto;
    padding: 15px;
    gap: 20px;
}

.petition-content {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    order: 1;
    width: 100%;
}

.petition-sidebar {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    order: 2;
    width: 100%;
    position: static;
    height: auto;
}

.mpp-button-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
}

/* Enhanced button grid styles to prevent theme/plugin overrides */
.mpp-button-grid .mpp-button,
.mpp-button-grid button,
.mpp-button-grid a {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    min-height: 64px !important;
    height: auto !important;
    max-height: none !important;
    padding: 12px 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    position: relative !important;
    margin: 0 !important;
    border: none !important;
    text-decoration: none !important;
    overflow: visible !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 1 1 auto !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-content: stretch !important;
    order: 0 !important;
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    flex-basis: auto !important;
    align-self: auto !important;
    text-overflow: unset !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    -webkit-box-direction: normal !important;
    -webkit-box-pack: start !important;
    -webkit-box-align: center !important;
    -webkit-box-lines: single !important;
    -webkit-box-sizing: border-box !important;
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    user-select: auto !important;
    -webkit-touch-callout: default !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
    font-feature-settings: "liga" 1, "kern" 1 !important;
}

/* Force button text container properties */
.mpp-button-grid .mpp-button .btn-text,
.mpp-button-grid button .btn-text,
.mpp-button-grid a .btn-text {
    flex: 1 !important;
    text-align: left !important;
    padding: 8px 16px 8px 0 !important;
    margin-right: 16px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    width: auto !important;
    position: relative !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
    word-wrap: break-word !important;
    word-break: normal !important;
    direction: ltr !important;
    text-orientation: mixed !important;
    writing-mode: horizontal-tb !important;
    line-height: 1.3 !important;
    display: block !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
    text-indent: 0 !important;
    letter-spacing: normal !important;
}

/* Mobile-specific button text fixes */
@media (max-width: 768px) {
    .mpp-button-grid .mpp-button .btn-text,
    .mpp-button-grid button .btn-text,
    .mpp-button-grid a .btn-text {
        font-size: 14px !important;
        line-height: 1.4 !important;
        padding: 10px 12px 10px 0 !important;
        margin-right: 12px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        max-height: none !important;
        height: auto !important;
        min-height: auto !important;
        display: block !important;
        position: static !important;
        transform: none !important;
        clip: auto !important;
        clip-path: none !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
        text-overflow: unset !important;
        white-space: normal !important;
        overflow: visible !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: auto !important;
        pointer-events: auto !important;
        user-select: auto !important;
        -webkit-user-select: auto !important;
        -moz-user-select: auto !important;
        -ms-user-select: auto !important;
    }
    
    .mpp-button-grid .mpp-button,
    .mpp-button-grid button,
    .mpp-button-grid a {
        min-height: 72px !important;
        height: auto !important;
        max-height: none !important;
        padding: 12px 0 !important;
        overflow: visible !important;
        text-overflow: unset !important;
        white-space: normal !important;
    }
}

@media (max-width: 480px) {
    .mpp-button-grid .mpp-button .btn-text,
    .mpp-button-grid button .btn-text,
    .mpp-button-grid a .btn-text {
        font-size: 13px !important;
        line-height: 1.5 !important;
        padding: 8px 10px 8px 0 !important;
        margin-right: 10px !important;
    }
    
    .mpp-button-grid .mpp-button,
    .mpp-button-grid button,
    .mpp-button-grid a {
        min-height: 68px !important;
        padding: 10px 0 !important;
    }
}

/* Petition Next/Previous Navigation Styles */

.mpp-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.mpp-nav-card {
    display: flex;
    align-items: center;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    background: #fff;
}

.mpp-nav-card.prev {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.mpp-nav-card.next {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.mpp-nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.mpp-nav-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.mpp-nav-content {
    flex: 1;
    min-width: 0;
}

.mpp-nav-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.mpp-nav-arrow {
    font-size: 1.2em;
    font-weight: bold;
    color: #667eea;
}

.mpp-nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mpp-nav-excerpt {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .mpp-navigation {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
        padding: 0 15px;
    }
    .mpp-nav-card {
        padding: 20px;
    }
    .mpp-nav-thumbnail {
        width: 60px;
        height: 60px;
        margin-right: 15px;
    }
    .mpp-nav-title {
        font-size: 1rem;
    }
    .mpp-nav-excerpt {
        font-size: 0.85rem;
    }
}

.archive-layout {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    margin: 0 auto;
    padding: 15px;
    gap: 20px;
}

.archive-content {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    order: 1;
    width: 100%;
}

.archive-sidebar {
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    order: 2;
    width: 100%;
    position: static;
    height: auto;
}

.petition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.petition-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.petition-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.petition-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.card-date {
    display: block;
    margin-bottom: 5px;
}

.card-supporters {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.card-supporters::before {
    content: "👥 ";
    margin-right: 4px;
}

.card-categories {
    display: block;
}

.card-categories a {
    text-decoration: none;
}

.card-categories a:hover {
    text-decoration: underline;
}

.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

@media (max-width: 768px) {
    .petition-layout, .archive-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }
    .petition-sidebar, .archive-sidebar {
        position: static;
    }
    .petition-grid {
        grid-template-columns: 1fr;
    }
    .mpp-navigation {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
        padding: 0 15px;
    }
    .mpp-nav-card {
        padding: 20px;
    }
    .mpp-nav-thumbnail {
        width: 60px;
        height: 60px;
        margin-right: 15px;
    }
}

/* Essential backgrounds, borders, and font-size for layout and cards */

.petition-content, .archive-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(80, 80, 120, 0.13);
    padding: 40px 36px 36px 36px;
    margin-bottom: 36px;
    transition: box-shadow 0.2s;
}

/* Template-specific styles moved from inline to CSS file */
.petition-layout, .archive-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

.petition-sidebar, .archive-sidebar {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 20px;
    width: 380px;
    min-width: 380px;
    max-width: 380px;
}

.archive-content {
    min-width: 0;
}

/* Responsive Thumbnail Styles */
.mpp-petition-thumbnail {
    width: 100%;
    margin: 25px 0 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
    position: relative;
}

.mpp-petition-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mpp-petition-thumbnail:hover img {
    transform: scale(1.02);
}

.mpp-thumbnail-container {
    position: relative;
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 12px;
}

.mpp-thumbnail-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (min-aspect-ratio: 21/9) {
    .mpp-thumbnail-container {
        max-height: 300px;
    }
}

@media (max-aspect-ratio: 4/5) {
    .mpp-thumbnail-container {
        max-height: 500px;
    }
}

/* Navigation Styles */
.mpp-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.mpp-nav-card {
    display: flex;
    align-items: center;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    background: #fff;
}

.mpp-nav-card.prev {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.mpp-nav-card.next {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.mpp-nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.mpp-nav-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.mpp-nav-content {
    flex: 1;
    min-width: 0;
}

.mpp-nav-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.mpp-nav-arrow {
    font-size: 1.2em;
    font-weight: bold;
    color: #667eea;
}

.mpp-nav-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mpp-nav-excerpt {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.petition-sidebar, .archive-sidebar {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(80, 80, 120, 0.13);
    padding: 36px 22px 32px 22px;
    margin-bottom: 36px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    position: sticky;
    top: 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mpp-sidebar-widget > *:not(:last-child) {
    margin-bottom: 28px;
}

.card-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(80, 80, 120, 0.06);
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.petition-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-meta {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.card-date {
    display: block;
    margin-bottom: 5px;
    color: #888;
}

.card-supporters {
    display: block;
    color: #007cba;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.card-categories {
    display: block;
}

.card-categories a {
    color: #007cba;
    text-decoration: none;
}

.card-categories a:hover {
    text-decoration: underline;
}

.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: #f8f9fa;
    color: #007cba;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #007cba;
    color: #fff;
}

@media (max-width: 1024px) {
    .petition-layout, .archive-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 10px;
    }
    .petition-sidebar, .archive-sidebar {
        position: static;
        max-width: 100%;
        margin: 0 0 32px 0;
        top: unset;
    }
    .petition-content, .archive-content {
        padding: 24px 8px 24px 8px;
    }
}

@media (max-width: 600px) {
    .petition-content, .archive-content {
        padding: 14px 2px 18px 2px;
        border-radius: 12px;
    }
    .petition-sidebar, .archive-sidebar {
        padding: 14px 2px 18px 2px;
        border-radius: 12px;
        gap: 18px;
    }
}

/* Comments Section for Single Petition */
.petition-comments {
    margin-top: 3rem;
    padding: 2rem;
    border-top: 2px solid #e2e8f0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.petition-comments h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: #1e293b;
}

.petition-comments h3 i {
    color: #667eea;
}

.comment-verification-notice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #92400e;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-verification-notice i {
    color: #f59e0b;
    font-size: 1.1rem;
}

.comment-form {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.75rem;
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    margin-bottom: 1rem;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.comment-list {
    margin-top: 2rem;
}

.comment-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.comment-author {
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-author i {
    color: #667eea;
    font-size: 0.9rem;
}

.comment-date {
    font-size: 0.8rem;
    color: #94a3b8;
}

.comment-content {
    color: #374151;
    line-height: 1.6;
    font-size: 0.95rem;
}

.comment-verified-badge {
    background: #10b981;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .mpp-comments-carousel {
        padding: 1rem;
    }
    .petition-comments {
        padding: 1rem;
        margin: 2rem 1rem;
    }
    .comment-form {
        padding: 1rem;
    }
    .comment-item {
        padding: 1rem;
    }
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Fix: Ensure Recent Comments text is readable on white backgrounds */

.mpp-comments-title {
    color: #1e293b !important;
}

.mpp-comment-content {
    color: #374151 !important;
}

.mpp-comment-author {
    color: #1e293b !important;
}

.mpp-comment-date {
    color: #94a3b8 !important;
}

.mpp-comment-slide {
    color: #374151 !important;
}
h2.mpp-sidebar-title {
    color: var(--mpp-sidebar-title-color);
    align-self: center;
    border-bottom: 2px ridge;
    padding: 5px;
}
/* WOW Sidebar Title Styles */
/* .mpp-sidebar-title { */
    /* margin: 0 0 30px 0; */
    /* font-size: 1.4rem; */
    /* color: #ffffff; */
    /* padding: 20px 25px; */
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    /* border-radius: 15px; */
    /* box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3); */
    /* border: none; */
    /* cursor: pointer; */
    /* font-weight: 700; */
    /* text-transform: uppercase; */
    /* letter-spacing: 1px; */
    /* text-align: center; */
    /* text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); */
    /* transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); */
    /* position: relative; */
    /* overflow: hidden; */
    /* -webkit-user-select: none; */
    /* -moz-user-select: none; */
    /* -ms-user-select: none; */
    /* user-select: none; */
/* } */
/* .mpp-sidebar-title:hover { */
    /* transform: translateY(-3px) scale(1.02); */
    /* box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4); */
    /* background: linear-gradient(135deg, #764ba2 0%, #667eea 100%); */
/* } */
/* .mpp-sidebar-title:active { */
    /* transform: translateY(-1px) scale(0.98); */
    /* box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3); */
/* } */
/* .mpp-sidebar-title::before { */
    /* content: ''; */
    /* position: absolute; */
    /* top: 0; */
    /* left: -100%; */
    /* width: 100%; */
    /* height: 100%; */
    /* background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); */
    /* transition: left 0.5s; */
/* } */
/* .mpp-sidebar-title:hover::before { */
    /* left: 100%; */
/* } */
/* .mpp-sidebar-title.pulse { */
    /* animation: pulse 2s infinite; */
/* } */
/* @keyframes pulse { */
    /* 0% { box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3); } */
    /* 50% { box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6); } */
    /* 100% { box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3); } */
/* } */
.mpp-sidebar-title i,
.mpp-sidebar-title .icon {
    margin-right: 10px;
    font-size: 1.2em;
}
.mpp-sidebar-title.glow {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3), 0 0 20px rgba(102, 126, 234, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.mpp-sidebar-title.glow:hover {
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4), 0 0 30px rgba(102, 126, 234, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
@media (max-width: 768px) {
    .mpp-sidebar-title {
        font-size: 1.2rem;
        padding: 15px 20px;
        margin: 0 0 25px 0;
    }
}

/* WOW Comments Section H4 Styling */
.mpp-comments-section h4 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 25px;
    margin-top: 0;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.mpp-comments-section h4:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.35);
    background: linear-gradient(135deg, #ee5a24 0%, #ff6b6b 100%);
}
.mpp-comments-section h4:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}
.mpp-comments-section h4::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}
.mpp-comments-section h4:hover::before {
    left: 100%;
}
.mpp-comments-section h4 i,
.mpp-comments-section h4 .icon {
    margin-right: 8px;
    font-size: 1.1em;
    vertical-align: middle;
}
@media (max-width: 768px) {
    .mpp-comments-section h4 {
        font-size: 16px;
        padding: 12px 18px;
        margin-bottom: 20px;
        letter-spacing: 0.5px;
    }
}
.mpp-comments-section h4.bounce {
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
    60% { transform: translateY(-2px); }
}
.mpp-comments-section h4.pulse-glow {
    animation: pulse-glow 3s infinite;
}
@keyframes pulse-glow {
    0% { box-shadow: 0 6px 20px rgba(255, 107, 107, 0.25); }
    50% { box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5), 0 0 25px rgba(255, 107, 107, 0.3); }
    100% { box-shadow: 0 6px 20px rgba(255, 107, 107, 0.25); }
}
.mpp-comments-section h4.border-accent {
    border-left: 4px solid #fbbf24;
    border-radius: 12px 12px 12px 8px;
}
.mpp-comments-section h4.minimal {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1e293b;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #ff6b6b;
}
.mpp-comments-section h4.minimal:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #f8fafc 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Button Styles */
.mpp-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--mpp-btn-bg, #007cba);
  color: var(--mpp-btn-text, #fff);
  text-decoration: none;
  border-radius: 6px;
  text-align: center;
  font-weight: 200;
  transition: background 0.3s ease, color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
  align-self: flex-start;
  width: 100%;
  box-sizing: border-box;
}
.mpp-button.mpp-anonymous-btn {
  background: var(--mpp-anonymous-btn-bg, #667eea);
  color: var(--mpp-anonymous-btn-text, #fff);
}
.mpp-button.mpp-email-btn {
  background: var(--mpp-email-btn-bg, #10b981);
  color: var(--mpp-email-btn-text, #fff);
}
.mpp-button.mpp-copy-link-btn {
  background: var(--mpp-copy-link-btn-bg, #f59e0b);
  color: var(--mpp-copy-link-btn-text, #fff);
}
.mpp-button.mpp-all-petitions-btn {
  background: var(--mpp-all-petitions-btn-bg, #8b5cf6);
  color: var(--mpp-all-petitions-btn-text, #fff);
}
.mpp-button:hover,
.mpp-button:focus {
  filter: brightness(0.95);
}

/* Legacy button text styles - now handled by enhanced system above */

/* Counter Styles */

.mpp-counter-number {
  display: inline-block;
  background: var(--mpp-counter-bg, #f3f4f6);
  color: var(--mpp-counter-text, #007cba);
  font-weight: 700;
  font-size: 1.1em;
  padding: 2px 10px;
  border-radius: 12px;
  margin: 0 2px;
  min-width: 2.2em;
  text-align: center;
  vertical-align: middle;
  transition: background 0.3s, color 0.3s;
}

/* Badge Styles */
.mpp-category-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--mpp-badge-bg, #667eea);
  color: var(--mpp-badge-text, #fff);
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
  margin-right: 4px;
  margin-bottom: 2px;
  transition: background 0.3s, color 0.3s;
}
.mpp-category-badge:hover {
  background: var(--mpp-badge-bg-hover, #5a67d8);
  color: var(--mpp-badge-text-hover, #fff);
}

.mpp-stats-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
  padding: 28px 0 18px 0;
  background: var(--mpp-stats-bg, #f8fafc);
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(102, 126, 234, 0.10);
  border: 1.5px solid #e0e7ff;
  font-size: 1.5em;
}

.mpp-stats-number {
  font-size: var(--mpp-stats-font-size, 4.2rem);
  font-weight: 800;
  color: var(--mpp-stats-color, #5b6eea);
  background: var(--mpp-stats-number-bg, #e0e7ff);
  padding: 18px 44px;
  border-radius: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 24px rgba(102, 126, 234, 0.13), 0 0 0 6px rgba(102,126,234,0.04);
  text-align: center;
  letter-spacing: 1px;
  transition: all 0.3s;
  border: 2.5px solid #c7d2fe;
}

.mpp-stats-label {
  font-size: 1.25rem;
  color: var(--mpp-stats-label-color, #64748b);
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Responsive for stats */
@media (max-width: 600px) {
  .mpp-stats-number {
    font-size: 2rem;
    padding: 10px 18px;
  }
  .mpp-stats-section {
    padding: 14px 0 10px 0;
    border-radius: 12px;
    }
}

.mpp-anim-pulse {
  animation: mpp-pulse 1.2s infinite;
}
@keyframes mpp-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.mpp-anim-bounce {
  animation: mpp-bounce 1s infinite;
}
@keyframes mpp-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Modern Sidebar Widget Styles */
.mpp-sidebar-widget {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.mpp-sidebar-widget:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.mpp-widget-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.mpp-widget-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.mpp-widget-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    flex: 1;
}

/* Stats Widget */
.mpp-stats-widget .mpp-stats-grid {
    display: grid;
    gap: 16px;
}

.mpp-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.mpp-stat-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateX(4px);
}

.mpp-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 10px;
    color: white;
    font-size: 0.9rem;
}

.mpp-stat-content {
    flex: 1;
}

.mpp-stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.mpp-stat-label {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 2px;
}

/* Categories Widget */
.mpp-categories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mpp-category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s ease;
}

.mpp-category-item:hover {
    background: #f1f5f9;
    border-color: #667eea;
    transform: translateX(4px);
    color: #667eea;
    text-decoration: none;
}

.mpp-category-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.mpp-category-name {
    font-weight: 500;
    color: inherit;
}

.mpp-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: #667eea;
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.mpp-category-arrow {
    color: #cbd5e1;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.mpp-category-item:hover .mpp-category-arrow {
    color: #667eea;
    transform: translateX(2px);
}

/* Comments Widget */
.mpp-comments-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.mpp-comment-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.mpp-comment-slide:first-child {
    display: block;
}

.mpp-comment-item {
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.mpp-comment-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.mpp-comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.mpp-comment-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: white;
    font-size: 0.8rem;
}

.mpp-comment-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mpp-comment-author {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.mpp-comment-date {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mpp-comment-date i {
    font-size: 0.7rem;
}

.mpp-comment-content {
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.5;
    font-style: italic;
}

/* Modern Carousel Navigation */
.mpp-comments-carousel .mpp-carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.mpp-comments-carousel .mpp-carousel-prev,
.mpp-comments-carousel .mpp-carousel-next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.mpp-comments-carousel .mpp-carousel-prev:hover,
.mpp-comments-carousel .mpp-carousel-next:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateY(-1px);
}

.mpp-comments-carousel .mpp-carousel-counter {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

/* Empty State */
.mpp-empty-state {
    text-align: center;
    padding: 32px 16px;
    color: #64748b;
}

.mpp-empty-state i {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.mpp-empty-state p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mpp-sidebar-widget {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .mpp-widget-header {
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
    
    .mpp-widget-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .mpp-widget-title {
        font-size: 1rem;
    }
    
    .mpp-stat-item {
        padding: 12px;
    }
    
    .mpp-stat-number {
        font-size: 1.3rem;
    }
    
    .mpp-category-item {
        padding: 10px 12px;
    }
    
    .mpp-comment-item {
        padding: 12px;
    }
    
    .mpp-comment-header {
        margin-bottom: 8px;
    }
    
    .mpp-comments-carousel .mpp-carousel-nav {
        margin-top: 12px;
        padding-top: 12px;
        gap: 12px;
    }
    
    .mpp-comments-carousel .mpp-carousel-prev,
    .mpp-comments-carousel .mpp-carousel-next {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .mpp-empty-state {
        padding: 24px 12px;
    }
    
    .mpp-empty-state i {
        font-size: 1.5rem;
    }
}

/* Modern Stat Cards Grid */
.mpp-stats-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.mpp-stat-card {
  background: #f8fafc;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.07);
  border: 1.5px solid #e2e8f0;
  padding: 22px 10px 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s, transform 0.2s;
  min-width: 0;
}
.mpp-stat-card:hover {
  box-shadow: 0 6px 24px rgba(102, 126, 234, 0.13);
  transform: translateY(-2px) scale(1.03);
}
.mpp-stat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.13);
}
.mpp-stat-card-number {
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 2px;
  line-height: 1.1;
}
.mpp-stat-card-label {
  font-size: 0.98rem;
  color: #64748b;
  font-weight: 500;
  text-align: center;
  margin-top: 2px;
}
@media (max-width: 600px) {
  .mpp-stats-grid-cards {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .mpp-stat-card {
    padding: 16px 4px 12px 4px;
  }
  .mpp-stat-card-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  .mpp-stat-card-number {
    font-size: 1.3rem;
  }
  .mpp-stat-card-label {
    font-size: 0.9rem;
  }
}

/* Enhanced Layout System - Unified for Single and Archive */
.petition-layout,
.archive-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* Enhanced Content Areas */
.petition-content,
.archive-content {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(80, 80, 120, 0.13);
    padding: 40px 36px 36px 36px;
    margin-bottom: 36px;
    transition: box-shadow 0.2s;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.petition-content::before,
.archive-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px 20px 0 0;
}

/* Enhanced Sidebar - Unified Styling */
.petition-sidebar,
.archive-sidebar {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(80, 80, 120, 0.13);
    padding: 36px 28px 32px 28px;
    margin-bottom: 36px;
    width: 380px;
    position: sticky;
    top: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 32px;
    height: fit-content;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.petition-sidebar::before,
.archive-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 20px 20px 0 0;
}

/* Enhanced Button Grid */
.mpp-button-grid {
    display: flex;
    flex-direction: column;
    gap: var(--mpp-button-gap, 16px);
    align-items: stretch;
    width: 100%;
}

/* Enhanced Button Styling with Text Wrapping */
.mpp-button-grid .mpp-button,
.mpp-button-grid button,
.mpp-button-grid a {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    min-height: var(--mpp-button-height, 64px) !important;
    height: auto !important;
    padding: var(--mpp-button-padding-y, 12px) 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    position: relative !important;
    margin: 0 !important;
    border: none !important;
    text-decoration: none !important;
    overflow: visible !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 1 1 auto !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-content: stretch !important;
    order: 0 !important;
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    flex-basis: auto !important;
    align-self: auto !important;
    border-radius: var(--mpp-button-border-radius, 12px) !important;
    transition: all 0.3s ease !important;
}

/* Enhanced Button Text with Wrapping Support */
.mpp-button-grid .mpp-button .btn-text,
.mpp-button-grid button .btn-text,
.mpp-button-grid a .btn-text {
    flex: 1 !important;
    text-align: left !important;
    padding: 8px var(--mpp-button-text-padding-right, 16px) 8px 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    width: auto !important;
    position: relative !important;
    font-size: var(--mpp-button-font-size, 1rem) !important;
    font-weight: 600 !important;
    color: inherit !important;
    word-wrap: break-word !important;
    word-break: normal !important;
    direction: ltr !important;
    text-orientation: mixed !important;
    writing-mode: horizontal-tb !important;
    line-height: var(--mpp-button-line-height, 1.3) !important;
    display: block !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
    text-indent: 0 !important;
    letter-spacing: normal !important;
    max-height: var(--mpp-button-text-max-height, 2.6em) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

/* Enhanced Button Icons */
.mpp-button-grid .mpp-button .mpp-btn-icon,
.mpp-button-grid button .mpp-btn-icon,
.mpp-button-grid a .mpp-btn-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: var(--mpp-button-icon-container-size, 48px) !important;
    height: var(--mpp-button-icon-container-size, 48px) !important;
    font-size: var(--mpp-button-icon-size, 1.4em) !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    margin: 0 12px 0 16px !important;
}

/* Enhanced Button Separators */
.mpp-button-grid .mpp-button .mpp-btn-sep,
.mpp-button-grid button .mpp-btn-sep,
.mpp-button-grid a .mpp-btn-sep {
    width: 1px !important;
    height: var(--mpp-button-separator-height, 32px) !important;
    background: rgba(255,255,255,0.3) !important;
    margin: 0 12px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
}

/* Enhanced Button Hover Effects */
.mpp-button-grid .mpp-button:hover,
.mpp-button-grid button:hover,
.mpp-button-grid a:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    filter: brightness(1.05) !important;
}

/* Enhanced Archive Grid */
.petition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* Enhanced Petition Cards */
.petition-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.petition-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1;
}

.petition-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

/* Enhanced Card Content */
.card-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(80, 80, 120, 0.06);
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Enhanced Sidebar Widgets */
.mpp-sidebar-widget {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mpp-sidebar-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.mpp-sidebar-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.mpp-sidebar-widget > *:not(:last-child) {
    margin-bottom: 24px;
}

/* Enhanced Sidebar Title */
h2.mpp-sidebar-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 20px 0;
    padding: 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    text-transform: none;
    letter-spacing: -0.02em;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: all 0.3s ease;
}

.mpp-sidebar-title i,
.mpp-sidebar-title::before {
    font-size: 1.2em;
    color: #667eea;
    opacity: 0.9;
    flex-shrink: 0;
}

/* Enhanced Counter Display */
.mpp-counter-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    margin: 0;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
    .petition-layout,
    .archive-layout {
        grid-template-columns: 1fr 350px;
        gap: 40px;
        padding: 25px;
        max-width: 1200px;
    }
    
    .petition-sidebar,
    .archive-sidebar {
        width: 350px;
        min-width: 350px;
        max-width: 350px;
        padding: 28px 24px 24px 24px;
    }
}

@media (max-width: 1024px) {
    .petition-layout,
    .archive-layout {
        grid-template-columns: 1fr 320px;
        gap: 30px;
        max-width: 1000px;
    }
    
    .petition-sidebar,
    .archive-sidebar {
        width: 320px;
        min-width: 320px;
        max-width: 320px;
        padding: 25px 20px 20px 20px;
    }
    
    .petition-content,
    .archive-content {
        padding: 30px 25px 25px 25px;
    }
    
    .petition-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
}

/* Tablet and Desktop - Side by Side Layout */
@media (min-width: 768px) {
    .petition-layout,
    .archive-layout {
        display: grid !important;
        grid-template-columns: 1fr 380px !important;
        gap: 40px !important;
        max-width: 1400px !important;
        padding: 30px !important;
        flex-direction: unset !important;
    }
    
    .petition-content,
    .archive-content {
        order: 1 !important;
        padding: 40px !important;
        border-radius: 20px !important;
        width: auto !important;
        max-width: none !important;
        flex: unset !important;
    }
    
    .petition-sidebar,
    .archive-sidebar {
        order: 2 !important;
        padding: 30px !important;
        border-radius: 20px !important;
        position: sticky !important;
        top: 20px !important;
        height: fit-content !important;
        width: 380px !important;
        min-width: 380px !important;
        max-width: 380px !important;
        flex: unset !important;
    }
}

/* Mobile Layout - Stacked */
@media (max-width: 767px) {
    .petition-layout, .archive-layout {
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }
    
    .petition-sidebar, .archive-sidebar {
        order: 2;
        width: 100%;
        position: static;
        height: auto;
        padding: 24px 20px;
    }
    
    .petition-content, .archive-content {
        order: 1;
        width: 100%;
        padding: 24px 20px;
    }
    
    /* Mobile thumbnail adjustments */
    .mpp-petition-thumbnail {
        margin: 20px 0 25px 0;
        border-radius: 8px;
    }
    
    .mpp-thumbnail-container {
        border-radius: 8px;
        max-height: 300px;
    }
    
    .petition-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mpp-navigation {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
        padding: 0 15px;
    }
    
    .mpp-nav-card {
        padding: 20px;
    }
    
    .mpp-nav-thumbnail {
        width: 60px;
        height: 60px;
        margin-right: 15px;
    }
    
    .mpp-nav-title {
        font-size: 1rem;
    }
    
    .mpp-nav-excerpt {
        font-size: 0.85rem;
    }
    
        .mpp-button-grid .mpp-button .btn-text,
    .mpp-button-grid button .btn-text,
    .mpp-button-grid a .btn-text {
        font-size: 13px !important;
        line-height: 1.3 !important;
        /* Remove height constraints for responsive text */
        max-height: none !important;
        overflow: visible !important;
        white-space: normal !important;
        padding: 6px 12px 6px 0 !important;
    }
    
        .mpp-button-grid .mpp-button,
    .mpp-button-grid button,
    .mpp-button-grid a {
        min-height: 60px !important;
        height: auto !important;
        max-height: none !important;
        padding: 10px 0 !important;
    }
    
    .mpp-button-grid .mpp-button .mpp-btn-icon,
    .mpp-button-grid button .mpp-btn-icon,
    .mpp-button-grid a .mpp-btn-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2em !important;
        margin: 0 8px 0 12px !important;
    }
}

@media (max-width: 480px) {
    .mpp-thumbnail-container {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .petition-layout,
    .archive-layout {
        padding: 10px;
    }
    
    .petition-content,
    .archive-content {
        padding: 20px 16px 16px 16px;
        border-radius: 16px;
    }
    
    .petition-sidebar,
    .archive-sidebar {
        padding: 20px 16px 16px 16px;
        border-radius: 16px;
    }
    
    .mpp-sidebar-widget {
        padding: 20px;
        border-radius: 12px;
    }
    
    .card-content {
        padding: 20px;
    }
}

/* Enhanced Scrollbar for Sidebar */
.petition-sidebar::-webkit-scrollbar,
.archive-sidebar::-webkit-scrollbar {
    width: 6px;
}

.petition-sidebar::-webkit-scrollbar-track,
.archive-sidebar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.petition-sidebar::-webkit-scrollbar-thumb,
.archive-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.petition-sidebar::-webkit-scrollbar-thumb:hover,
.archive-sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Enhanced Loading States */
.mpp-button.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.mpp-button.loading .btn-text {
    opacity: 0.6;
}

.mpp-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Focus States */
.mpp-button-grid .mpp-button:focus,
.mpp-button-grid button:focus,
.mpp-button-grid a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Enhanced Accessibility */
@media (prefers-reduced-motion: reduce) {
    .mpp-button-grid .mpp-button,
    .mpp-button-grid button,
    .mpp-button-grid a,
    .petition-sidebar,
    .archive-sidebar,
    .petition-card,
    .mpp-sidebar-widget {
        transition: none !important;
    }
    
    .mpp-button-grid .mpp-button:hover,
    .mpp-button-grid button:hover,
    .mpp-button-grid a:hover,
    .petition-card:hover,
    .mpp-sidebar-widget:hover {
        transform: none !important;
    }
}

/* Universal responsive layout override - ensures responsiveness regardless of settings */
@media (max-width: 767px) {
    .petition-layout, .archive-layout {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 20px !important;
        padding: 15px !important;
    }
    
    .petition-content, .archive-content {
        order: 1 !important;
        width: 100% !important;
        max-width: none !important;
        flex: 1 1 auto !important;
    }
    
    .petition-sidebar, .archive-sidebar {
        order: 2 !important;
        width: 100% !important;
        max-width: none !important;
        position: static !important;
        height: auto !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        flex: 1 1 auto !important;
    }
}

/* Desktop layout override - ensures desktop layout takes precedence */
@media (min-width: 768px) {
    .petition-layout, .archive-layout {
        display: grid !important;
        grid-template-columns: 1fr 380px !important;
        gap: 40px !important;
        max-width: 1400px !important;
        padding: 30px !important;
        flex-direction: unset !important;
    }
    
    .petition-content, .archive-content {
        order: 1 !important;
        width: auto !important;
        max-width: none !important;
        flex: unset !important;
        padding: 40px !important;
        border-radius: 20px !important;
    }
    
    .petition-sidebar, .archive-sidebar {
        order: 2 !important;
        width: 380px !important;
        min-width: 380px !important;
        max-width: 380px !important;
        position: sticky !important;
        top: 20px !important;
        height: fit-content !important;
        flex: unset !important;
        padding: 30px !important;
        border-radius: 20px !important;
    }
}

/* Force button text to be visible and properly wrapped */
@media (max-width: 767px) {
    .mpp-button-grid .mpp-button .btn-text,
    .mpp-button-grid button .btn-text,
    .mpp-button-grid a .btn-text {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        text-overflow: unset !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
        line-height: 1.4 !important;
        font-size: 14px !important;
        padding: 10px 12px 10px 0 !important;
        margin-right: 12px !important;
        flex: 1 !important;
        text-align: left !important;
        box-sizing: border-box !important;
        position: static !important;
        transform: none !important;
        clip: auto !important;
        clip-path: none !important;
        z-index: auto !important;
        pointer-events: auto !important;
        user-select: auto !important;
        -webkit-user-select: auto !important;
        -moz-user-select: auto !important;
        -ms-user-select: auto !important;
    }
    
    .mpp-button-grid .mpp-button,
    .mpp-button-grid button,
    .mpp-button-grid a {
        min-height: 72px !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        text-overflow: unset !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
        padding: 12px 0 !important;
        display: flex !important;
        align-items: center !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .mpp-button-grid .mpp-button .btn-text,
    .mpp-button-grid button .btn-text,
    .mpp-button-grid a .btn-text {
        font-size: 13px !important;
        line-height: 1.5 !important;
        padding: 8px 10px 8px 0 !important;
        margin-right: 10px !important;
    }
    
    .mpp-button-grid .mpp-button,
    .mpp-button-grid button,
    .mpp-button-grid a {
        min-height: 68px !important;
        padding: 10px 0 !important;
    }
}
