.qa-item {
            padding: 1rem 0;
            border-bottom: 1px solid #f0f0f0;
        }
        .qa-item:last-child {
            border-bottom: none;
        }

        /* New structure for avatar + content layout */
        .qa-content-wrapper {
            display: flex;
            gap: 10px; /* Space between avatar and content */
            align-items: flex-start; /* Align top of avatar with top of content */
            margin-bottom: 8px; /* Space before the next block (e.g., answer) */
        }

        .qa-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0; /* Prevent avatar from shrinking */
            background-color: #f0f0f0; /* Fallback color */
        }

        .qa-content {
            flex-grow: 1; /* Allow content to take up remaining space */
            min-width: 0; /* Important for flexbox to allow text wrapping */
        }

        .qa-content-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 4px;
        }

        .qa-asker-name {
            font-weight: 600;
            font-size: 0.9rem;
            color: #333;
        }

        .qa-delete-btn {
            background: none;
            border: none;
            color: #aaa;
            font-size: 1.2rem;
            cursor: pointer;
            padding: 0 5px;
            line-height: 1;
        }
        .qa-delete-btn:hover { color: #d33; }

        .qa-text {
            margin: 0;
            font-size: 0.95rem;
            line-height: 1.5;
            color: #555;
            word-wrap: break-word; /* Ensure long words don't overflow */
        }
        .qa-actions {
            display: flex;
            gap: 1rem;
            margin-bottom: 8px;
        }
        .qa-actions button {
            background: none;
            border: none;
            color: #666;
            cursor: pointer;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 0;
            margin-left: 46px; /* Indent actions to align with text content */
        }
        .qa-actions button:hover {
            color: #c2185b;
        }

        /* New container for replies */
        .qa-replies-container {
            margin-top: 12px;
            padding-left: 46px; /* Align with text content */
            border-left: 2px solid #f0f0f0;
        }

        /* Form for submitting a reply */
        .reply-form {
            display: flex;
            gap: 8px;
            margin-top: 12px;
            margin-left: 46px; /* Align with text content */
        }
        .reply-form input {
            flex-grow: 1;
            border: 1px solid #ccc; /* Slightly softer border */
            border-radius: 15px;
            padding: 5px 10px;
            font-size: 0.9rem;
        }
        .reply-form button {
            background-color: #d6336c;
            color: white;
            border: none;
            border-radius: 15px;
            padding: 5px 12px;
            cursor: pointer;
            font-weight: 500; /* Add a bit of boldness */
        }
        .reply-form button:hover {
            background-color: #c2185b; /* Darker pink on hover */
        }

        .mobile-broadcast-toggle {
            display: none; /* Hidden on desktop */
            background: none;
            border: none;
            color: #d6336c;
            font-size: 1.8rem;
            cursor: pointer;
            padding: 0;
            line-height: 1;
        }

        /* --- Improved Q&A Styling --- */
        .qa-header {
            padding: 1rem;
            border-bottom: 1px solid #eee;
            text-align: center;
        }
        .qa-header h4 {
            margin: 0;
            font-size: 1.15rem;
            color: #d6336c; /* Theme color for header */
        }

        .qa-list {
            padding: 0 1rem; /* Padding on the list container */
        }
        .qa-form {
            display: flex;
            padding: 1rem;
            border-top: 1px solid #eee;
            background-color: #f8f9fa; /* Light background for the form area */
        }
        .qa-replies {
            margin-top: 10px;
            padding-left: 15px;
            border-left: 2px solid #eee;
        }
        .reply-item {
            font-size: 0.85rem;
            color: #555;
            margin-bottom: 5px;
        }

        .qa-form input {
            flex-grow: 1;
            border: 1px solid #ccc;
            border-radius: 20px; /* Rounded input */
            padding: 8px 15px;
            font-size: 0.95rem;
            color: #333;
            transition: border-color 0.2s ease;
        }

        .qa-form input:focus {
            border-color: #d6336c;
            outline: none;
        }

        .qa-form button {
            background-color: #d6336c;
            color: #fff;
            border: none;
            border-radius: 20px;
            padding: 8px 15px;
            font-size: 0.95rem;
            cursor: pointer;
            font-weight: 500;
            margin-left: 8px; /* Space between input and button */
            transition: background-color 0.2s ease;
        }

        .qa-form button:hover {
            background-color: #c2185b; /* Darker pink on hover */
        }
        .qa-actions button:focus { outline: none; }

        /* --- Chat Panel Layout Fix --- */
        .chat-feed-panel {
            display: flex;
            flex-direction: column;
            height: 100%;
            min-height: 0; /* Critical for flexbox scrolling */
        }
        .qa-list {
            flex-grow: 1;
            overflow-y: auto;
        }

        /* --- Trending Topics Styles --- */
        .chat-trending-panel ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .chat-trending-panel li {
            padding: 8px 12px;
            border-radius: 16px;
            background-color: #f1f3f5;
            color: #495057;
            font-size: 0.85rem;
            margin-bottom: 0.5rem;
            cursor: pointer;
            transition: background-color 0.2s;
            }
        .chat-trending-panel li:hover { background-color: #e9ecef; }

        .chat-trending-panel li.active-topic {
            background-color: #d6336c;
            box-shadow: 0 2px 8px rgba(214, 51, 108, 0.3);
        }
        /* When the parent li is active, make the link text white */
        .chat-trending-panel li.active-topic a {
            color: #fff;
        }

        #mobile-broadcast-panel {
            display: none; /* Hidden on desktop by default */
        }
