.single-news-activities {
    margin: 40px auto;
    padding: 0 20px;
}

.single-news-featured {
    margin-bottom: 25px;
    text-align: right;
}

.featured-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.single-news-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: left;
}

.single-news-body {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Fix bullet list alignment to stay within content borders */
.single-news-body ul,
.single-news-content ul {
    margin-left: 1.5rem;
    padding-left: 0;
    list-style-position: inside;
}

.single-news-body li,
.single-news-content li {
    margin-bottom: 0.5rem;
    padding-left: 0;
}

/* Ensure bullets don't extend outside content area */
.single-news-body ul li::marker,
.single-news-content ul li::marker {
    color: var(--primary-red, #C41E32);
}

/* Alternative approach for older browsers */
.single-news-body ul {
    list-style-position: inside;
    padding-left: 0;
    margin-left: 1rem;
}

.single-news-content ul {
    list-style-position: inside;
    padding-left: 0;
    margin-left: 1rem;
}

/* Gallery Carousel */
.news-gallery-wrapper {
    position: relative;
    margin: 40px 0;
}

.news-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Video */
.news-video {
    margin: 40px 0;
}

.news-video .video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}
.gallery-video{
    float: right;
}

[dir="ltr"] .gallery-video{
    float: left;
}
.news-video .video-wrapper iframe,
.news-video .video-wrapper video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 10px;
}

/* Custom Swiper Arrows */
.swiper-button-next,
.swiper-button-prev {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    color: var(--primary-red) !important; /* Arrow color */
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px !important; /* Arrow size */
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Position arrows outside carousel */
.swiper-button-prev {
    left: -60px !important;
}

.swiper-button-next {
    right: -60px !important;
}

/* On mobile, bring them closer */
@media (max-width: 768px) {
    .swiper-button-prev {
        left: -15px;
    }
    .swiper-button-next {
        right: -15px;
    }
}
span.comment-counter {
    background-color: var(--primary-red);
    padding: 11px;
    border-radius: 100%;
    line-height: 1px;
    font-size: 14px;
    color: white;
    margin-right: 5px;
}
    /* Comment form container */
.comment-respond {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #ddd;
    margin-top: 40px;
}

/* Title */
.comment-title {
    margin-bottom: 20px;
    font-size: 22px;
    color: var(--dark-gray);
}

/* Input fields */
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.comment-respond textarea {
   margin-bottom: unset;
}
.comment-respond input:focus,
.comment-respond textarea:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

/* Submit button */
.btn-submit-comment {
    background: var(--primary-red);
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.3s ease;
}

.btn-submit-comment:hover {
    background: var(--primary-red);
}

/* Existing comments */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list li {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    position: relative;
}

.comment-list .comment-author {
    font-weight: 700;
    color: #1e293b;
    font-size: 15px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.01em;
    justify-content: space-between;
    width: 100%;
}

/* Comment Avatar Styles */
.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.comment-avatar:hover {
    border-color: var(--primary-red);
    transform: scale(1.05);
}

.comment-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    border: 2px solid #9ca3af;
}

.comment-avatar-default {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border: 2px solid #d1d5db;
}

.comment-author-name {
    /* flex: 0 0 auto; */
    text-wrap-mode: wrap;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.comment-header-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.comment-header-meta .comment-time {
    font-size: 11px;
    color: #64748b;
    font-weight: 400;
}

.comment-header-meta .delete-comment-btn {
    background: transparent !important;
    color: #9ca3af !important;
    border: none !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.comment-header-meta .delete-comment-btn:hover {
    color: #dc2626 !important;
    transform: scale(1.1) !important;
}

/* Admin Avatar Special Styling */
.comment-avatar[src*="site-icon"] {
    border: 2px solid #fbbf24;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.comment-avatar[src*="site-icon"]:hover {
    border-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    transform: scale(1.1);
}

/* Youth Profile Picture Styling */
.comment-avatar[alt*="youth"] {
    border: 2px solid #10b981;
}

.comment-avatar[alt*="youth"]:hover {
    border-color: #059669;
}

/* Entity Logo Styling */
.comment-avatar[alt*="entity"] {
    border: 2px solid #6366f1;
}

.comment-avatar[alt*="entity"]:hover {
    border-color: #4f46e5;
}

.comment-list .comment-meta {
    display: none; /* Hidden - moved to header */
}

.comment-actions {
    order: 2;
}

.comment-time {
    order: 1;
    margin-left: 0;
}

.comment-actions .delete-comment-btn {
    background: rgba(255, 255, 255, 0.5) !important;
    color: #9ca3af !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    padding: 7px 12px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-left: 10px !important;
    margin-right: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    outline: none !important;
    user-select: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    font-weight: 600 !important;
}

.comment-actions .delete-comment-btn:focus {
    outline: 2px solid rgba(239, 68, 68, 0.3) !important;
    outline-offset: 2px !important;
}

.comment-actions .delete-comment-btn:hover {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
    color: #dc2626 !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
    transform: translateY(-1px) scale(1.02) !important;
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.2) !important;
}

.comment-actions .delete-comment-btn i {
    color: inherit !important;
    margin: 0 !important;
    font-size: 13px !important;
}

.comment-actions .delete-comment-btn:disabled {
    background: #e5e7eb !important;
    color: #9ca3af !important;
    border: 1px solid #d1d5db !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

/* Delete Comment Modal Styles */
.delete-comment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-arabic, Arial, sans-serif);
    background: rgba(0, 0, 0, 0.6);
}

/* Prevent scrolling when modal is open */
body.modal-open {
    overflow: hidden !important;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
    z-index: 100000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
    z-index: 10000;
    pointer-events: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
}

.modal-header h3 {
    margin: 0;
    color: #dc3545;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    margin: 0 0 1rem 0;
    color: #374151;
    font-size: 1rem;
    line-height: 1.5;
}

.modal-body .warning-text {
    color: #dc3545;
    font-weight: 500;
    margin: 0;
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.modal-footer .btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.modal-footer .btn:focus {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}

.modal-footer .btn-cancel {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.modal-footer .btn-cancel:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.modal-footer .btn-delete {
    background: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.modal-footer .btn-delete:hover {
    background: #c82333;
    border-color: #bd2130;
}

/* RTL Support */
[dir="rtl"] .modal-footer {
    justify-content: flex-start;
}

[dir="rtl"] .modal-header {
    flex-direction: row-reverse;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}


.comment-meta {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap;
}

.comment-meta::before {
    content: '🕒';
    font-size: 12px;
    opacity: 0.7;
    order: 1;
}

.comment-meta .comment-time {
    order: 1;
    display: flex;
    align-items: center;
    gap: 2px;
}

.comment-list .comment-content {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 4px;
    margin-bottom: 0;
    color: #475569;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

/* New comment highlight animation */
.comment-new-highlight {
    animation: highlightFade 2s ease-in-out;
}

@keyframes highlightFade {
    0% { background-color: #dff0d8; }
    100% { background-color: transparent; }
}

.comment-list .comment-content::before {
    /* content: '"'; */
    /* position: absolute;
    top: -8px;
    left: 12px;
    font-size: 28px;
    color: var(--primary-red);
    opacity: 0.2;
    font-family: Georgia, serif;
    font-weight: bold; */
}
.comment-respond p.logged-in-as {
    display: none;
}
.comment-list-container{
    margin-top: 15px;
}

/* Comment Status Badge - Modern Design */
.comment-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 16px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(251, 191, 36, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* .comment-status-badge::before {
    content: '⏳';
    font-size: 11px;
} */

.comment-status-badge.pending {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Pending comment background - Enhanced */
.comment-list li.comment-pending {
    position: relative;
}

.comment-list li.comment-pending .comment-wrapper {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fbbf24;
    box-shadow: 0 3px 10px rgba(251, 191, 36, 0.15);
}

.comment-list li.comment-pending .comment-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent #fbbf24 transparent transparent;
    opacity: 0.3;
}

/* Nested Comments Styles - Modern Card Design */
.comment-item {
    position: relative;
    margin-bottom: 12px;
}

.comment-wrapper {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.comment-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-red) 0%, #E63946 100%);
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 12px 0 0 12px;
}

.comment-item:hover .comment-wrapper {
    box-shadow: 0 8px 24px rgba(196, 30, 50, 0.15);
    border-color: rgba(196, 30, 50, 0.3);
    transform: translateY(-2px);
}

.comment-item:hover .comment-wrapper::before {
    opacity: 1;
}

/* Reply Comments (Nested) - Enhanced Design */
.comment-reply {
    margin-left: 16px;
    margin-top: 8px;
    position: relative;
}

.comment-reply .comment-wrapper {
    background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%);
    border-left: 3px solid var(--primary-red);
    padding:5px;
    padding-left: 16px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    position: relative;
    border-top-left-radius: 0;
}

.comment-reply .comment-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -3px;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-red) 0%, rgba(196, 30, 50, 0.5) 100%);
    border-radius: 0;
}

.comment-reply:hover .comment-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    box-shadow: 0 4px 16px rgba(196, 30, 50, 0.12);
    transform: translateY(-1px);
    border-left-color: #E63946;
}

/* Reply indicator - Enhanced */
.reply-indicator {
    font-size: 11px;
    color: #64748b;
    font-style: italic;
    font-weight: 600;
    margin-left: 8px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    padding: 4px 10px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.reply-indicator::before {
    content: '↳';
    margin-right: 2px;
    color: var(--primary-red);
    font-weight: bold;
    font-size: 12px;
}

/* Comment replies container */
.comment-replies {
    list-style: none;
    margin: 8px 0 0 0;
    padding: 0;
    /* border-left: 2px solid #e5e7eb; */
    margin-left: 10px;
    padding-left: 10px;
    position: relative;
}

/* .comment-replies::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-red) 0%, rgba(196, 30, 50, 0.2) 100%);
    opacity: 0.5;
} */

.comment-replies .comment-item {
    margin-bottom: 3px;
}

/* Visual connection line for replies - enhanced */
.comment-reply::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 0;
    bottom: 50%;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-red), #ff6b6b);
    border-radius: 1px;
}

.comment-reply::after {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    width: 8px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red), #ff6b6b);
    border-radius: 1px;
}

/* Different depths for multiple nesting levels - compact */
.comment-item[data-depth="1"] .comment-reply {
    margin-left: 14px;
}

.comment-item[data-depth="2"] .comment-reply {
    margin-left: 12px;
}

.comment-item[data-depth="3"] .comment-reply {
    margin-left: 10px;
}

/* Responsive adjustments for nested comments */
@media (max-width: 768px) {
    .comment-reply {
        margin-left: 10px;
    }
    
    .comment-replies {
        margin-left: 6px;
        padding-left: 6px;
    }
    
    .comment-item[data-depth="1"] .comment-reply {
        margin-left: 8px;
    }
    
    .comment-item[data-depth="2"] .comment-reply {
        margin-left: 6px;
    }
    
    .comment-item[data-depth="3"] .comment-reply {
        margin-left: 4px;
    }
    
    .comment-reply::before {
        left: -6px;
        width: 1px;
    }
    
    .comment-reply::after {
        left: -6px;
        width: 4px;
    }
    
    .comment-wrapper {
        padding: 8px;
        border-radius: 6px;
    }
    
    .comment-list .comment-content {
        padding: 6px;
        border-radius: 4px;
    }
    
    .comment-list .comment-author {
        font-size: 13px;
        gap: 8px;
    }
    
    .comment-avatar {
        width: 28px;
        height: 28px;
    }
    
    .comment-avatar-initials {
        font-size: 10px;
    }
    
    .comment-list .comment-meta {
        font-size: 10px;
    }
}

/* ========================================
   FLOATING COMMENTS BUTTON & SIDEBAR
   ======================================== */

/* Floating Comments Button */
.floating-comments-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    height: 50px;
    background-color: #dc2626; /* Red color */
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    transition: all 0.3s ease;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 1000;
    font-size: 0;
}
.floating-comments-btn .btn-label {
    display: inline-block;   /* needed for transform */
    /* transform: rotate(-180deg);  */
    transform-origin: center;   /* rotate around center */
}

[dir="ltr"] .floating-comments-btn .btn-label {
    transform: rotate(-180deg); /* rotate text */
}

.floating-comments-btn:hover {
    background-color: #b91c1c; /* Darker red on hover */
    /* transform: translateY(-2px); */
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.floating-comments-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* LTR specific styling for floating comments button */
[dir="ltr"] .floating-comments-btn {
    border-radius: 50px;
    right: -50px;
    top: 50%;
    width: 150px;
    height: 50px;
    transform: translateY(-50%) rotate(90deg) !important;
}
[dir="rtl"] .floating-comments-btn {
 border-radius: 50px;
    left: -50px;
    top: 50%;
    width: 150px;
    height: 50px;
    transform: translateY(-50%) rotate(90deg) !important;}


.floating-comments-btn .btn-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.floating-comments-btn .comment-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    /* transform: rotate(-180deg); */
}
[dir="ltr"] .floating-comments-btn .comment-icon {
    transform: rotate(-180deg);
}


.floating-comments-btn .btn-label {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
}

.floating-comments-btn .comment-count-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #1f8941;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
    border: 2px solid #ffffff;
    line-height: 1;
}

/* LTR specific positioning for comment count badge */
[dir="ltr"] .floating-comments-btn .comment-count-badge {
    top: -8px;
    right: 8px;
}

@keyframes pulse-float {
    0%, 100% { 
        transform: translateY(0) scale(1); 
        box-shadow: 0 4px 20px rgba(196, 30, 50, 0.4);
    }
    50% { 
        transform: translateY(-5px) scale(1.02); 
        box-shadow: 0 6px 25px rgba(196, 30, 50, 0.5);
    }
}

/* Hide floating comments button on mobile for non-logged-in users */
@media (max-width: 768px) {
    .floating-comments-btn.hide-mobile-not-logged-in {
        display: none !important;
    }
}

/* Comments Sidebar */
.comments-sidebar {
    position: fixed;
    left: -420px;
    top: 0;
    width: 420px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.comments-sidebar.active {
    left: 0;
}

/* LTR Positioning for English and French - Comments sidebar opens from right */
[dir="ltr"] .comments-sidebar,
.ltr .comments-sidebar,
body[class*="lang-en"] .comments-sidebar,
body[class*="lang-fr"] .comments-sidebar,
body[class*="en"] .comments-sidebar,
body[class*="fr"] .comments-sidebar {
    left: auto;
    right: -420px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[dir="ltr"] .comments-sidebar.active,
.ltr .comments-sidebar.active,
body[class*="lang-en"] .comments-sidebar.active,
body[class*="lang-fr"] .comments-sidebar.active,
body[class*="en"] .comments-sidebar.active,
body[class*="fr"] .comments-sidebar.active {
    left: auto;
    right: 0;
}

/* Entity Notice Styling */
.comment-entity-notice,
.sidebar-entity-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.comment-entity-notice strong,
.sidebar-entity-notice strong {
    color: #856404;
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.comment-entity-notice p,
.sidebar-entity-notice p {
    color: #856404;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.sidebar-header {
    padding: 20px 24px;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
}

.sidebar-header .sidebar-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}


.sidebar-close-btn {
    background: #f3f4f6;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #6b7280;
}

.sidebar-close-btn:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: rotate(90deg);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-content::-webkit-scrollbar {
    width: 8px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.sidebar-comment-list {
    margin: 0;
    padding: 0;
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
}

.no-comments-message {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.no-comments-message svg {
    display: block;
    margin: 0 auto 16px;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Comment Form Styling */
.comment-respond {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px;
    margin: 24px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.comment-respond .comment-title {
    color: #1e293b;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-respond .comment-title::before {
    content: '💬';
    font-size: 18px;
}

.comment-form-comment textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    background: #ffffff;
}

.comment-form-comment textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(196, 30, 50, 0.1);
}

.comment-form-comment textarea::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.btn-submit-comment {
    background: linear-gradient(135deg, var(--primary-red) 0%, #E63946 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(196, 30, 50, 0.3);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(196, 30, 50, 0.4);
}

.btn-submit-comment:active {
    transform: translateY(0);
}

.btn-submit-comment.loading {
    opacity: 0.8;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-submit-comment.loading:hover {
    transform: none;
}

/* Comment button loader spinner */
.comment-btn-loader {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: comment-spin 0.6s linear infinite;
}

@keyframes comment-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Comment Restriction Notice */
.comment-restriction-notice {
    border-left: 4px solid #fbbf24 !important;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
    border: 1px solid #fbbf24 !important;
    color: #92400e !important;
}

/* Comment Login Prompt */
.comment-login-prompt {
    background: #fefafa;
    border: 1px solid #f8bbd9;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin: 20px 0;
    color: #666666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comment-login-prompt strong {
    color: #333333;
    font-size: 18px;
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
    line-height: 1.4;
}

.comment-login-prompt p {
    color: #666666;
    font-size: 14px;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.comment-login-prompt .btn {
    background: #e74c3c;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    margin-top: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 200px;
}

.comment-login-prompt .btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Sidebar Comment Form Styling - Sticky Footer */
.sidebar-comment-form {
    margin-top: auto;
    /* padding: 16px; */
    border-top: 2px solid #e5e7eb;
    background: #ffffff;
    flex-shrink: 0;
}

.sidebar-comment-form-wrapper {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    /* border: 1px solid #e5e7eb; */
    border-radius: 10px;
    /* padding: 16px; */
    margin: 0;
}

.sidebar-comment-title {
    color: #1e293b;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-comment-title::before {
    content: '✍️';
    font-size: 14px;
}

.sidebar-comment-form .comment-form-comment textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    background: #ffffff;
}

.sidebar-comment-form .comment-form-comment textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px rgba(196, 30, 50, 0.1);
}

.sidebar-comment-form .comment-form-comment textarea::placeholder {
    color: #9ca3af;
    font-style: italic;
}

.sidebar-submit {
    background: linear-gradient(135deg, var(--primary-red) 0%, #E63946 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(196, 30, 50, 0.3);
    width: 100%;
    margin-top: 8px;
}

.sidebar-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(196, 30, 50, 0.4);
}

.sidebar-restriction {
    font-size: 12px;
    padding: 12px;
    margin: 0;
}

.sidebar-login-prompt {
    font-size: 12px;
    padding: 12px;
    margin: 0;
}

.sidebar-login-prompt .btn {
    padding: 8px 16px;
    font-size: 12px;
    margin-top: 8px;
}

/* Responsive Sidebar */
@media (max-width: 768px) {
    .comments-sidebar {
        width: 85%;
        max-width: 350px;
        left: -100%;
    }
    
    .floating-comments-btn {
        bottom: 20px;
        right: 20px;
        height: 45px;
    }
    
    .floating-comments-btn .comment-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .floating-comments-btn {
        bottom: 15px;
        right: 15px;
        height: 40px;
    }
    
    .floating-comments-btn .comment-icon {
        width: 18px;
        height: 18px;
    }
    
    .sidebar-header {
        padding: 16px 20px;
    }
    
    .sidebar-content {
        padding: 12px;
    }
    
    .comment-respond {
        padding: 16px;
        margin: 16px 0;
    }
    
    .comment-form-comment textarea {
        min-height: 100px;
        padding: 12px;
    }
    
    .sidebar-comment-form-wrapper {
        padding: 12px;
    }
    
    .sidebar-comment-form .comment-form-comment textarea {
        min-height: 70px;
        padding: 10px;
        font-size: 12px;
    }
    
    .sidebar-submit {
        padding: 8px 16px;
        font-size: 12px;
    }
}

p.comment-form-comment {
    margin-bottom: unset;
}

.comment-respond textarea{
    margin-bottom: unset;
}
.sidebar-comment-form .form-submit{
    margin-bottom: unset;
}
