/* =========================================
   ZE Blog Grid widget styles
   ========================================= */
/* grid-template-columns itself comes entirely from the responsive `columns`
   control (desktop/tablet/mobile values via Elementor's inline CSS) — this
   is just a sane fallback if that CSS hasn't generated yet. */
.zea-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.zea-post-card {
    position: relative;
    min-width: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.zea-image-wrap {
    position: relative;
    /* Matches the real 1200x630 cover-image convention the blog posts use
       (confirmed 2026-11-18 via getimagesize() on three recent AI-generated
       covers - all exactly 1200x630). The old 3/2 (1.5:1) crop box was
       narrower than the images' real ~1.905:1 ratio, so object-fit: cover
       cropped roughly 21% off each side by default (centered), cutting off
       title text baked into the image artwork near the edges. */
    aspect-ratio: 1200 / 630;
    overflow: hidden;
    background-color: #f0f0f0;
}
.zea-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.zea-post-card:hover .zea-image-wrap img { transform: scale(1.05); }

.zea-category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    z-index: 2;
    display: inline-block;
    /* White text on #e8521a was ~3.7:1 - fails WCAG AA's 4.5:1 for
       this small (12px) badge text (flagged by PageSpeed's contrast
       audit). #C2410C is the same orange family, darkened to ~5.2:1. */
    background-color: #C2410C;
    color: #ffffff;
    border-radius: 20px;
}

.zea-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    text-align: center;
    font-size: 12px;
    z-index: 2;
    line-height: 1.2;
}
.zea-date-badge strong { display: block; font-size: 16px; font-weight: 700; }
.zea-date-badge span  { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }

.zea-post-body { padding: 20px 22px 24px; }
/* Colors below are tuned for a dark card background, not the light
   default these classes originally assumed - the ZE Blog Grid widget's
   own card_bg control never actually applies in the homepage/blog-
   archive reuse (hec_fp_blog_grid()/hec_fp_blog_grid_paginated() render
   .zea-post-card directly via PHP with no background set), so the
   card is transparent and the page's #101010 shows straight through.
   #777/#555 were WCAG failures against that (2.5-4.2:1); these pass
   AA (4.5:1+). If a future light-background usage of this widget
   appears, give that context its own override instead of reverting
   this. */
.zea-meta { display: flex; gap: 15px; font-size: 13px; color: #a8a8a8; margin-bottom: 10px; }
.zea-post-title { margin: 0 0 10px; overflow-wrap: break-word; word-break: break-word; }
.zea-post-title a { text-decoration: none; font-weight: 600; line-height: 1.3; display: block; }
.zea-excerpt { color: #c9c9c9; font-size: 14px; line-height: 1.6; margin: 0 0 14px; overflow-wrap: break-word; word-break: break-word; }
.zea-readmore {
    /* Was inheriting an Elementor Global Kit link color (#cc3366, only
       3.83:1 on #101010) - overridden locally rather than changing the
       kit color globally, which would affect every other link site-wide. */
    color: #ff6fa3;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
}
.zea-readmore:hover { transform: translateX(3px); }

.zea-pagination { margin-top: 30px; text-align: center; }
.zea-pagination a,
.zea-pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.zea-pagination a:hover {
    background-color: #a502a8;
    color: #fff;
    border-color: #a502a8;
}
.zea-pagination .current {
    background-color: #a502a8;
    color: #fff;
    border-color: #a502a8;
}

/* STYLE 1 — Rounded Soft Shadow */
.zea-style-1 .zea-post-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 40px -10px rgba(0,0,0,0.15);
}
.zea-style-1 .zea-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px -10px rgba(0,0,0,0.22);
}
.zea-style-1 .zea-date-badge {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* STYLE 2 — Sharp Border Outline */
.zea-style-2 .zea-post-card {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    box-shadow: 4px 4px 0px 0px rgba(0,0,0,0.08);
}
.zea-style-2 .zea-post-card:hover {
    box-shadow: 6px 6px 0px 0px rgba(165,2,168,0.35);
    border-color: #a502a8;
}
.zea-style-2 .zea-date-badge { background: #1a1a1a; color: #ffffff; border-radius: 0; }
.zea-style-2 .zea-category-badge { border-radius: 0; }

/* STYLE 3 — Minimal Flat */
.zea-style-3 .zea-post-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none;
    border-bottom: 3px solid #a502a8;
}
.zea-style-3 .zea-post-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.zea-style-3 .zea-date-badge {
    background: rgba(255,255,255,0.9);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border-radius: 6px;
}

/* =========================================
   Shared elements for Styles 5-8 (cloned from Creative Blog Designer
   Bundle's Layouts 2-5 - see widget-blog-grid.php's render_meta_card()
   docblock). These styles have no overlay badges/date-badge on the
   image, so .zea-category-badge/.zea-date-badge never render for them.
   ========================================= */
.zea-post-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: #a8a8a8;
    margin-bottom: 10px;
}
.zea-post-meta-row i { margin-right: 4px; }
.zea-meta-category,
.zea-meta-tag {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.zea-meta-category:hover,
.zea-meta-tag:hover { color: #a502a8; }
.zea-meta-row--centered { justify-content: center; }

.zea-post-card--centered { text-align: center; }
.zea-post-card--centered .zea-post-title,
.zea-post-card--centered .zea-excerpt { text-align: center; }

.zea-meta-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #a8a8a8;
}
.zea-meta-author img { border-radius: 50%; display: block; }

.zea-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 12px;
    flex-wrap: wrap;
}
.zea-post-footer--end { justify-content: flex-end; }
.zea-footer-right { display: inline-flex; align-items: center; gap: 14px; }

/* Style 6's large overlapping date pill - a real positioned element
   (not an ::after pseudo-element) since it needs to render the actual
   formatted date text, not just a CSS-generated shape. */
.zea-has-date-pill { overflow: visible !important; }
.zea-date-pill {
    position: relative;
    z-index: 3;
    margin: -18px auto 0;
    width: fit-content;
    padding: 8px 20px;
    border-radius: 999px;
    background-color: #0d6efd;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 8px 20px rgba(13,110,253,0.35);
}

/* STYLE 5 — Below-Image Meta */
.zea-style-5 .zea-post-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.zea-style-5 .zea-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

/* STYLE 6 — Overlapping Date Pill */
.zea-style-6 .zea-post-card {
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.zea-style-6 .zea-post-card:hover {
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

/* STYLE 7 — Centered */
.zea-style-7 .zea-post-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}
.zea-style-7 .zea-post-card:hover {
    border-color: #a502a8;
}

/* STYLE 8 — Title First */
.zea-style-8 .zea-post-card {
    border-radius: 14px;
    overflow: hidden;
    border-bottom: 3px solid #e8521a;
}
.zea-style-8 .zea-post-card:hover {
    box-shadow: 0 14px 32px rgba(0,0,0,0.15);
}

/* STYLE 4 — Bold Accent */
.zea-style-4 .zea-post-card {
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid #a502a8;
    box-shadow: 0 10px 25px rgba(165,2,168,0.12);
}
.zea-style-4 .zea-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 45px -12px rgba(165,2,168,0.35);
}
.zea-style-4 .zea-date-badge {
    background: #a502a8;
    color: #ffffff;
    border-radius: 10px;
}

