/* =============================================================================
   News & Updates — social feed  [cca_news_feed]
   Single column, most recent first: featured image, then title, then body.
   Deliberately not a blog archive grid.
   All layout rules use !important to override Divi's aggressive defaults.
   ============================================================================= */

.cca-news-feed {
    width: 100% !important;
    max-width: 760px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.cca-news-feed__list {
    display: flex !important;
    flex-direction: column !important;
    gap: 2.25em !important;
    width: 100% !important;
}

/* ---- Category filter bar ---- */

.cca-news-filters {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5em !important;
    margin: 0 0 2em !important;
    padding: 0 0 1.25em !important;
    border-bottom: 1px solid #e8e8e8 !important;
}

.cca-news-filter,
a.cca-news-filter,
a.cca-news-filter:visited {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5em !important;
    padding: 0.5em 1.1em !important;
    background: #fff !important;
    border: 1px solid #dde3e8 !important;
    border-radius: 999px !important;
    color: #4B5E6C !important;
    font-size: 0.9em !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    transition: background 0.18s, border-color 0.18s, color 0.18s !important;
}

a.cca-news-filter:hover,
a.cca-news-filter:focus {
    background: #f5f0ec !important;
    border-color: #CE8363 !important;
    color: #4B5E6C !important;
}

a.cca-news-filter.is-active,
a.cca-news-filter.is-active:visited {
    background: #CE8363 !important;
    border-color: #CE8363 !important;
    color: #fff !important;
}

/* Empty sections stay visible and clickable - that is how someone finds out
   where to submit an obituary or a business listing. */
a.cca-news-filter.is-empty {
    color: #8a97a1 !important;
}

a.cca-news-filter.is-empty.is-active {
    color: #fff !important;
}

.cca-news-filter__count {
    display: inline-block !important;
    min-width: 1.5em !important;
    padding: 0.05em 0.45em !important;
    background: #f0f0f0 !important;
    border-radius: 999px !important;
    color: #8a97a1 !important;
    font-size: 0.8em !important;
    text-align: center !important;
}

.cca-news-filter.is-active .cca-news-filter__count {
    background: rgba(255, 255, 255, 0.28) !important;
    color: #fff !important;
}

@media (max-width: 520px) {
    .cca-news-filters {
        gap: 0.4em !important;
    }

    .cca-news-filter,
    a.cca-news-filter {
        padding: 0.45em 0.85em !important;
        font-size: 0.85em !important;
    }
}

/* ---- Feed item ---- */

.cca-news-post {
    display: block !important;
    width: 100% !important;
    background: #fff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(75, 94, 108, 0.08) !important;
}

.cca-news-post__image {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    background: #eef1f3 !important;
}

.cca-news-post__image img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 480px !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.cca-news-post__body {
    padding: 1.6em 1.75em 1.9em !important;
}

.cca-news-post__meta {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.6em !important;
    font-size: 0.82em !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    color: #8a97a1 !important;
    margin: 0 0 0.55em !important;
}

.cca-news-post__cats {
    color: #CE8363 !important;
    font-weight: 600 !important;
}

.cca-news-post__cats::before {
    content: "\00b7";
    margin-right: 0.6em;
    color: #c9d1d6;
}

.cca-news-post__title,
h2.cca-news-post__title {
    font-family: "Cormorant Garamond", Cormorant, Georgia, serif !important;
    font-weight: 700 !important;
    font-size: 2.1em !important;
    line-height: 1.15 !important;
    color: #4B5E6C !important;
    margin: 0 0 0.5em !important;
    padding: 0 !important;
    text-align: left !important;
}

.cca-news-post__title a,
.cca-news-post__title a:visited {
    color: inherit !important;
    text-decoration: none !important;
}

.cca-news-post__title a:hover {
    color: #CE8363 !important;
}

.cca-news-post__content {
    color: #4B5E6C !important;
    line-height: 1.7 !important;
    font-size: 1em !important;
}

.cca-news-post__content > *:first-child {
    margin-top: 0 !important;
}

.cca-news-post__content > *:last-child {
    margin-bottom: 0 !important;
}

.cca-news-post__content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 10px !important;
}

.cca-news-post__content a {
    color: #CE8363 !important;
}

/* Cards show a teaser only; the full post lives on its own page. */

.cca-news-post__more,
a.cca-news-post__more,
a.cca-news-post__more:visited {
    display: inline-block !important;
    margin-top: 1.15em !important;
    padding: 0.6em 1.8em !important;
    background: transparent !important;
    border: 2px solid #CE8363 !important;
    border-radius: 10px !important;
    color: #CE8363 !important;
    font-size: 0.9em !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    transition: background 0.18s, color 0.18s !important;
}

a.cca-news-post__more:hover,
a.cca-news-post__more:focus {
    background: #CE8363 !important;
    color: #fff !important;
}

/* ---- Feed controls ---- */

.cca-news-feed__loading {
    text-align: center !important;
    padding: 2em 0 !important;
    color: #8a97a1 !important;
}

.cca-news-feed__load-more {
    text-align: center !important;
    margin-top: 2.25em !important;
}

.cca-news-feed__load-more-btn {
    display: inline-block !important;
    padding: 0.75em 2.4em !important;
    background: transparent !important;
    border: 2px solid #CE8363 !important;
    border-radius: 10px !important;
    color: #CE8363 !important;
    font: inherit !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.18s, color 0.18s !important;
}

.cca-news-feed__load-more-btn:hover,
.cca-news-feed__load-more-btn:focus {
    background: #CE8363 !important;
    color: #fff !important;
}

/* =============================================================================
   Empty state — used by the feed and by empty category archives
   ============================================================================= */

.cca-empty-state {
    max-width: 620px !important;
    margin: 0 auto !important;
    padding: 3.25em 2em !important;
    text-align: center !important;
    background: #fff !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 18px !important;
    box-shadow: 0 2px 10px rgba(75, 94, 108, 0.06) !important;
    box-sizing: border-box !important;
}

.cca-empty-state__mark {
    display: block !important;
    width: 54px !important;
    height: 54px !important;
    margin: 0 auto 1.1em !important;
    border-radius: 50% !important;
    background: rgba(239, 223, 187, 0.55) !important;
    border: 2px solid #EFDFBB !important;
    position: relative !important;
}

.cca-empty-state__mark::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 2px;
    margin: -1px 0 0 -9px;
    border-radius: 2px;
    background: #CE8363;
}

.cca-empty-state__title,
h3.cca-empty-state__title {
    font-family: "Cormorant Garamond", Cormorant, Georgia, serif !important;
    font-weight: 700 !important;
    font-size: 2em !important;
    line-height: 1.2 !important;
    color: #4B5E6C !important;
    margin: 0 0 0.45em !important;
    padding: 0 !important;
    text-align: center !important;
}

.cca-empty-state__text {
    color: #6d7d88 !important;
    line-height: 1.7 !important;
    margin: 0 auto 1.5em !important;
    max-width: 46ch !important;
}

.cca-empty-state__link,
a.cca-empty-state__link,
a.cca-empty-state__link:visited {
    display: inline-block !important;
    padding: 0.7em 2em !important;
    border: 2px solid #CE8363 !important;
    border-radius: 10px !important;
    color: #CE8363 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background 0.18s, color 0.18s !important;
}

a.cca-empty-state__link:hover,
a.cca-empty-state__link:focus {
    background: #CE8363 !important;
    color: #fff !important;
}

/* Empty archive: replace the listing modules with the empty state.
   The theme-builder category layout renders a gallery + a Divi blog module;
   with no posts in the term, both are noise (the gallery ignores the archive
   and would show every other post). */

body.cca-archive-empty .cca-blog-gallery,
body.cca-archive-empty .et_pb_blog_0,
body.cca-archive-empty .cca-blog-filter {
    display: none !important;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
    .cca-news-post__body {
        padding: 1.3em 1.25em 1.5em !important;
    }

    .cca-news-post__title,
    h2.cca-news-post__title {
        font-size: 1.75em !important;
    }

    .cca-news-post__image img {
        max-height: 320px !important;
    }

    .cca-empty-state {
        padding: 2.5em 1.25em !important;
    }

    .cca-empty-state__title,
    h3.cca-empty-state__title {
        font-size: 1.6em !important;
    }
}

@media (max-width: 520px) {
    .cca-news-feed__list {
        gap: 1.5em !important;
    }

    .cca-news-post {
        border-radius: 14px !important;
    }

    .cca-news-post__title,
    h2.cca-news-post__title {
        font-size: 1.5em !important;
    }
}
