
    .apify-facebook-groups-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
        padding: 20px;
        font-family: "Inter", sans-serif;
        background-color: #f0f2f5;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .apify-facebook-group-post {
        background-color: #ffffff;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .apify-facebook-group-post .post-header {
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
        display: flex; /* Use flexbox for alignment */
        justify-content: space-between; /* Space out author and date */
        align-items: baseline; /* Align text baselines */
        flex-wrap: wrap; /* Allow wrapping on smaller screens */
    }

    .apify-facebook-group-post .post-author {
        font-weight: bold;
        color: #1877f2; /* Facebook blue */
        text-decoration: none;
        font-size: 1.1em;
        margin-right: 10px; /* Space between author and date */
    }

    .apify-facebook-group-post .post-author:hover {
        text-decoration: underline;
    }

    .apify-facebook-group-post .post-date {
        font-size: 0.85em;
        color: #65676b; /* Facebook gray for metadata */
        white-space: nowrap; /* Prevent date from breaking */
    }

    .apify-facebook-group-post .post-content {
        margin-bottom: 10px;
        color: #333;
        line-height: 1.5;
        font-size: 0.95em;
    }

    .apify-facebook-group-post .post-image {
        margin-top: 10px;
        text-align: center;
    }

    .apify-facebook-group-post .post-image img {
        max-width: 100%;
        height: auto;
        border-radius: 5px;
        display: block; /* Remove extra space below image */
        margin: 0 auto;
    }

    .apify-facebook-group-post .post-footer {
        margin-top: 15px;
        padding-top: 10px;
        border-top: 1px solid #eee;
        display: flex; /* Use flexbox */
        justify-content: flex-end; /* Align to the right */
        gap: 15px; /* Space between links */
        flex-wrap: wrap; /* Allow wrapping */
    }

    .apify-facebook-group-post .post-link,
    .apify-facebook-group-post .post-external-link { /* Apply common styles to both links */
        color: #1877f2;
        text-decoration: none;
        font-size: 0.9em;
    }

    .apify-facebook-group-post .post-link:hover,
    .apify-facebook-group-post .post-external-link:hover {
        text-decoration: underline;
    }

    .apify-error {
        color: #d63638;
        background-color: #ffebe8;
        border: 1px solid #d63638;
        padding: 10px;
        border-radius: 5px;
        margin: 20px 0;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .apify-facebook-groups-container {
            grid-template-columns: 1fr;
            padding: 10px;
        }
        .apify-facebook-group-post .post-header {
            flex-direction: column; /* Stack author and date on small screens */
            align-items: flex-start;
        }
        .apify-facebook-group-post .post-author {
            margin-right: 0;
            margin-bottom: 5px;
        }
    }
    