/* Scoped to the replacement grid; Elementor owns the heading and section. */
.tower-social-news {
    width: 100%;
    min-width: 0;
    --tower-news-panel: var(--e-global-color-b65c10e, #cfd1ca);
    --tower-news-ink: var(--e-global-color-8a9bc60, #000);
}

.tower-social-news .cff-wrapper,
.tower-social-news .cff-wrapper-ctn,
.tower-social-news #cff {
    float: none;
    width: 100% !important;
    max-width: none;
    height: auto !important;
    margin: 0;
    padding: 0;
    background: transparent;
    overflow: visible;
}

.tower-social-news .cff-visual-header,
.tower-social-news .cff-header,
.tower-social-news .cff-likebox {
    display: none !important;
}

.tower-social-news #cff .cff-posts-wrap {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 20px;
    float: none;
    width: 100%;
    height: auto !important;
    margin: 0;
    padding: 0;
}

.tower-social-news #cff .tower-social-news__card,
.tower-social-news #cff .tower-social-news__card:first-child {
    display: flex;
    flex-direction: column;
    position: relative !important;
    inset: auto !important;
    float: none;
    width: 100% !important;
    min-width: 0;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: var(--tower-news-panel) !important;
    color: var(--tower-news-ink);
    overflow-wrap: anywhere;
}

/* These remain in the DOM so Smash Balloon can still manage its own data. */
.tower-social-news #cff .tower-social-news__card > .cff-author,
.tower-social-news #cff .tower-social-news__card > .cff-post-text,
.tower-social-news #cff .tower-social-news__card > .cff-media-link,
.tower-social-news #cff .tower-social-news__card > .cff-post-links,
.tower-social-news #cff .tower-social-news__card > .cff-meta-wrap,
.tower-social-news #cff .tower-social-news__card > .cff-shared-link {
    display: none !important;
}

.tower-social-news #cff .tower-social-news__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 10px;
    background: var(--tower-news-panel);
    text-align: center;
    font-family: "Factor", sans-serif;
}

.tower-social-news #cff .tower-social-news__logo {
    display: block;
    flex-shrink: 0;
    width: 121px;
    height: 28px;
    margin: 0;
    object-fit: contain;
}

.tower-social-news #cff .tower-social-news__body .cff-date {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    color: var(--tower-news-ink);
    font-family: "Factor", sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
}

.tower-social-news #cff .cff-date-dot {
    display: none;
}

.tower-social-news #cff .tower-social-news__title,
.tower-social-news #cff .tower-social-news__title a {
    margin: 0;
    padding: 0;
    color: var(--tower-news-ink);
    font-family: "Factor", sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
}

.tower-social-news #cff .tower-social-news__title a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tower-social-news #cff .tower-social-news__title a:focus-visible {
    outline: 2px solid var(--tower-news-ink);
    outline-offset: 4px;
}

.tower-social-news #cff .tower-social-news__excerpt {
    min-height: 87px;
    margin: 0;
    padding: 0;
    color: var(--e-global-color-text, #383a37);
    font-family: "Factor", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

@media (max-width: 1024px) {
    .tower-social-news #cff .cff-posts-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .tower-social-news #cff .cff-posts-wrap {
        grid-template-columns: minmax(0, 1fr);
    }
}
