/*--------------------------------------------------------------
# Modern Comments Area
--------------------------------------------------------------*/
.modern-comments-area {
    margin-top: 40px;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.comments-title-container {
    text-align: center;
    margin-bottom: 40px;
}

.comments-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    font-size: 22px;
    color: #1e293b;
    font-weight: 700;
}

.comments-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 22px;
    background-color: var(--primary-color, #409eff);
    border-radius: 2px;
}

#respond {
    margin-bottom: 40px;
    background-color: #f8fafc;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.comment-form-comment textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.6;
    min-height: 120px;
    transition: border-color 0.3s;
}

.comment-form-comment textarea:focus {
    outline: none;
    border-color: #80accc;
    box-shadow: 0 0 0 2px rgba(128, 172, 204, 0.25);
}

.comment-form-fields {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.comment-form-fields p {
    flex: 1;
    margin: 0;
}

.comment-form-fields input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.comment-form-fields input:focus {
    outline: none;
    border-color: #80accc;
    box-shadow: 0 0 0 2px rgba(128, 172, 204, 0.25);
}

.form-submit {
    margin-top: 20px;
    text-align: right;
}

.form-submit .submit {
    background-color: var(--primary-color, #409eff);
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit .submit:hover {
    background-color: color-mix(in srgb, var(--primary-color, #409eff) 80%, white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-submit .submit:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

.comment-form-message {
    margin-top: 15px;
    font-size: 14px;
}

.comment-form-message.success {
    color: #28a745;
}

.comment-form-message.error {
    color: #dc3545;
}


.comments-list-container {
    margin-top: 40px;
}

.comments-count {
    font-size: 20px;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list li.comment {
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.comment-list li.comment::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--primary-color, #409eff);
}

.comment-list li.comment {
    padding-left: 24px;
    /* Space for the decorative border */
}

.comment-list li:last-child {
    margin-bottom: 0;
}

.comment-body {
    display: flex;
    gap: 20px;
}

.comment-author .avatar {
    border-radius: 50%;
}

.comment-content-wrapper {
    flex: 1;
}

.comment-meta {
    margin-bottom: 10px;
    font-size: 14px;
    color: #777;
}

.comment-author .fn {
    font-weight: 600;
    color: #1e293b;
    font-style: normal;
}

.comment-metadata a {
    color: #777;
    text-decoration: none;
}

.comment-metadata a:hover {
    text-decoration: underline;
}

.comment-content p {
    margin: 0 0 10px;
    line-height: 1.7;
    color: #334155;
}

.reply {
    font-size: 13px;
}

.reply .comment-reply-link {
    color: var(--primary-color, #409eff);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

.reply .comment-reply-link:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .comment-form-fields {
        flex-direction: column;
        gap: 15px;
    }
    .form-submit {
        text-align: center;
    }

    .form-submit .submit {
        padding: 10px 20px;
        font-size: 15px;
    }
}