/* Comments Section Design */
.comments-section {
    margin-top: 40px;
}

.comments-list {
    margin-bottom: 40px;
}

.comment-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-light);
    /* Light gray background like image */
    border-radius: 8px;
    /* Slightly squared corners */
    margin-bottom: 16px;
    border: none;
    /* Removed border */
}

/* Avatar Placeholder */
.comment-avatar-placeholder {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}

/* User Avatar Image */
.comment-avatar-img {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.comment-author {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1rem;
}

.comment-body {
    color: var(--text-dark);
    line-height: 1.5;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.comment-meta {
    font-size: 0.85rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-reply-link {
    color: #3b82f6;
    /* Blue like image */
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.comment-reply-link:hover {
    text-decoration: underline;
}

/* Nested Comments */
.comment-replies {
    margin-left: 66px;
    /* Indent to align with content of parent */
    margin-top: -10px;
    /* Pull up closer to parent */
    margin-bottom: 24px;
}

/* Form Styling */
.comment-form-box h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group-half {
    flex: 1;
}

/* Inputs matching the image style */
.comment-input,
.comment-textarea {
    width: 100%;
    padding: 12px 16px;
    border: none;
    /* No border initially */
    background: var(--bg-light);
    /* Light gray background */
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.comment-textarea {
    resize: vertical;
    min-height: 120px;
    margin-bottom: 16px;
    /* Textarea first */
}

.comment-input::placeholder,
.comment-textarea::placeholder {
    color: #9ca3af;
}

.comment-input:focus,
.comment-textarea:focus {
    outline: 2px solid var(--primary);
    /* Focus ring */
    background: var(--bg-white);
}

.btn-submit-comment {
    background: #ef4444;
    /* Red/Pink color */
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    float: right;
    /* Right align button */
}

.btn-submit-comment:hover {
    background: #dc2626;
}

.btn-submit-comment:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 12px;
    }

    .comment-replies {
        margin-left: 20px;
    }

    .comment-item {
        padding: 15px;
    }
}