/* assets/css/cj-engagement.css */
.cj-news-form {
    margin-bottom: 1.5rem;
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.cj-news-form .form-group {
    margin-bottom: 0.75rem;
}
.cj-news-form label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    color: #333;
}
.cj-news-form input,
.cj-news-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
    box-sizing: border-box;
}
.cj-news-form textarea {
    resize: vertical;
    min-height: 80px;
}
.cj-news-form .btn-primary {
    background: #009739; /* Green */
    color: #fff;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}
.cj-news-form .btn-primary:hover {
    background: #00732e; /* Darker green */
}
.cj-news-form .btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.news-feed-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.news-feed-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    max-width: 100%;
    overflow: hidden;
}
.feed-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.feed-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.feed-meta h3 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}
.feed-meta p {
    margin: 0;
    font-size: 0.7rem;
    color: #666;
}
.feed-content h4 {
    margin: 0 0 0.5rem;
    font-size: 0.95rem; /* Smaller title */
    font-weight: 600;
}
.feed-content h4 a {
    color: #009739; /* Green */
    text-decoration: none;
}
.feed-content h4 a:hover {
    text-decoration: underline;
}
.feed-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    display: block;
    object-fit: cover;
}
.feed-content p {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    color: #444;
    line-height: 1.3;
    word-wrap: break-word;
}
.read-more {
    color: #EF3340; /* Red */
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
}
.read-more:hover {
    text-decoration: underline;
}
.feed-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: nowrap; /* Horizontal layout */
    justify-content: space-between;
}
.btn-like,
.btn-comment,
.btn-share {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    transition: background 0.2s;
    flex: 1;
    justify-content: center;
}
.btn-like.liked .dashicons-heart {
    color: #EF3340; /* Red */
}
.btn-like:hover,
.btn-comment:hover,
.btn-share:hover {
    background: #f0f0f0;
}
.btn-like:hover .dashicons-heart,
.btn-comment:hover .dashicons-admin-comments,
.btn-share:hover .dashicons-share {
    color: #009739; /* Green */
}
.btn-load-more {
    display: block;
    margin: 1.5rem auto;
    padding: 0.5rem 1rem;
    background: #009739; /* Green */
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}
.btn-load-more:hover {
    background: #00732e; /* Darker green */
}
.form-message {
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}
.form-message.success {
    background: #d4edda;
    color: #155724;
}
.form-message.error {
    background: #f8d7da;
    color: #721c24;
}
.toast-notification {
    position: fixed;
    top: 15px;
    right: 15px;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: #fff;
    z-index: 1000;
    font-size: 0.8rem;
}
.toast-notification.success {
    background: #009739; /* Green */
}
.toast-notification.error {
    background: #EF3340; /* Red */
}

/* Mobile Optimization */
@media (max-width: 600px) {
    .dashboard-wrapper {
        padding: 0;
    }
    .dashboard-container {
        padding: 0.5rem;
        max-width: 100%;
    }
    .dashboard-main h1 {
        font-size: 1.2rem;
    }
    .cj-news-form {
        padding: 0.5rem;
    }
    .cj-news-form h2 {
        font-size: 1rem;
    }
    .cj-news-form .form-group {
        margin-bottom: 0.5rem;
    }
    .cj-news-form label {
        font-size: 0.8rem;
    }
    .cj-news-form input,
    .cj-news-form textarea {
        font-size: 0.8rem;
        padding: 0.4rem;
    }
    .news-feed-item {
        padding: 0.5rem;
    }
    .feed-header {
        gap: 0.4rem;
    }
    .feed-avatar {
        width: 28px;
        height: 28px;
    }
    .feed-meta h3 {
        font-size: 0.8rem;
    }
    .feed-meta p {
        font-size: 0.65rem;
    }
    .feed-content h4 {
        font-size: 0.9rem;
    }
    .feed-content p {
        font-size: 0.75rem;
    }
    .read-more {
        font-size: 0.75rem;
    }
    .feed-actions {
        gap: 0.3rem;
    }
    .btn-like,
    .btn-comment,
    .btn-share {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }
    .btn-load-more {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    .form-message,
    .toast-notification {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

.news-feed-item {
    border: 1px solid #ddd;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}
.feed-header {
    display: flex;
    align-items: center;
}
.feed-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
}
.feed-meta h3 {
    margin: 0;
    font-size: 1.2rem;
}
.feed-meta p {
    margin: 0;
    color: #666;
}
.feed-content h4 {
    margin: 0.5rem 0;
}
.feed-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}
.feed-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.btn-like, .btn-comment, .btn-share {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem;
    border: none;
    background: none;
    cursor: pointer;
}
.btn-like.liked .dashicons-heart {
    color: #EF3340;
}
.share-options {
    margin-top: 0.5rem;
}
.share-icon {
    margin-right: 0.5rem;
    font-size: 1.5rem;
    color: #333;
}
.share-icon.whatsapp { color: #25D366; }
.share-icon.facebook { color: #3b5998; }
.share-icon.twitter { color: #1DA1F2; }
.form-message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}
.form-message.success { background: #009739; color: #fff; }
.form-message.error { background: #EF3340; color: #fff; }
.toast-notification {
    transition: opacity 0.3s;
}