/* ================================================================
   ClinicianCore Featured Articles v1.0.0
   Brand: Teal #0D98BA | Navy #1A365D | Amber #F6AD55
   Font:  Albert Sans

   Card rules below intentionally MIRROR cc-resource-filter.css so
   Featured cards look identical to blog-grid cards. If you change
   card styling in cc-resource-filter.css, mirror the change here too.
================================================================ */

.cc-fa-wrap {
    font-family: 'Albert Sans', sans-serif;
    margin: 0 0 2.5rem;
}

.cc-fa-heading {
    position: relative;
    font-family: 'Albert Sans', sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #1A365D !important;
    padding-left: 12px;
    margin: 0 0 1rem;
}
.cc-fa-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1px;
    bottom: 1px;
    width: 4px;
    border-radius: 2px;
    background: #0D98BA;
}

/* ── CARD — mirrors cc-resource-filter.css ── */

.cc-fa-grid .elementor-post__card {
    background: #ffffff;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
    height: 100%;
}
.cc-fa-grid .elementor-post__card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.11);
    transform: translateY(-2px);
}

.cc-fa-grid .elementor-post__thumbnail__link {
    display: block;
    overflow: hidden;
}

.cc-fa-grid .elementor-post__thumbnail {
    position: relative;
    background: #ffffff;
    line-height: 0;
}

.cc-fa-grid .cc-fa-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 100px;
    background: #0D98BA;
    color: #ffffff;
    font-family: 'Albert Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(13, 152, 186, .35);
}

.cc-fa-grid .elementor-post__thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

.cc-fa-grid .elementor-post__thumbnail--placeholder {
    aspect-ratio: 16 / 9;
    background: #f0f5f8;
}

.cc-fa-grid .elementor-post__text {
    padding: 18px 22px 22px !important;
}

.cc-fa-grid .elementor-post__title {
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin-bottom: 10px !important;
}
.cc-fa-grid .elementor-post__title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cc-fa-grid .cc-rf-byline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-family: 'Albert Sans', sans-serif;
    font-size: 12.5px;
    line-height: 1.3;
    margin: -2px 0 12px;
}
.cc-fa-grid .cc-rf-byline__author { color: #1A365D; font-weight: 600; }
.cc-fa-grid .cc-rf-byline__sep    { color: #cbd5e0; }
.cc-fa-grid .cc-rf-byline__date   { color: #718096; }

.cc-fa-grid .elementor-post__excerpt {
    margin-bottom: 16px !important;
}

.cc-fa-grid .elementor-post__read-more-wrapper {
    margin-top: 0 !important;
    padding-top: 4px !important;
}

/* ── TABLET ─────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    /* Override inline 3-column grid to 2 columns on tablet */
    .cc-fa-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* ── MOBILE ─────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .cc-fa-grid {
        grid-template-columns: 1fr !important;
    }
}
