/* ==========================================================================
   Blog components — supplemental to css/style.css
   Uses existing theme values directly: primary #117abf, light accent #01aef0,
   theme-1 #2283c3, extra-light #e2eff7, lighter text #b8d7ec.
   Reuses existing utilities as-is: .radius-10, .btn-theme, .box-shadow
   ========================================================================== */

/* Category badge */
.blog-badge {
    display: inline-block;
    background-color: #117abf;
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    padding: .35rem .85rem;
    border-radius: 25px;
}

/* Meta row (date, read time, author) */
.blog-meta {
    color: #6c757d;
    font-size: .85rem;
}
.blog-meta.border-top {
    border-color: #eef1f4 !important;
}

/* Image area fallback — gradient + centered icon, used whenever no real
   photo is set. Once a real image path is supplied, the inline
   background-image takes over automatically. */
.blog-featured-img,
.blog-card-img {
    position: relative;
    background: linear-gradient(135deg, #117abf 0%, #2283c3 55%, #01aef0 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-img-icon {
    color: rgba(255, 255, 255, .5);
    font-size: 2.75rem;
}
.blog-img-icon-lg {
    font-size: 4.5rem;
}

/* Featured post banner */
.blog-featured {
    background: #fff;
    border: 1px solid #e2e6ea;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(17, 122, 191, .08);
    transition: box-shadow .2s ease, transform .2s ease;
}
.blog-featured:hover {
    box-shadow: 0 10px 28px rgba(17, 122, 191, .14);
    transform: translateY(-2px);
}
.blog-featured-img {
    flex: 0 0 42%;
    min-height: 280px;
}
.blog-featured .blog-badge {
    position: relative;
}
.blog-featured-body {
    flex: 1 1 auto;
    color: #212529;
}
.blog-featured-body h2 {
    font-size: 1.65rem;
    color: #212529;
}
.blog-featured-body p {
    color: #6c757d;
}
.blog-featured:hover .blog-featured-body h2 {
    color: #117abf;
}

/* Category filter pills */
.blog-filter-pill {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    border: 1px solid #117abf;
    color: #117abf;
    background-color: #fff;
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
.blog-filter-pill:hover {
    background-color: #e2eff7;
}
.blog-filter-pill.active {
    background-color: #117abf;
    border-color: #117abf;
    color: #fff;
}

/* Post card — deliberately more "card-like" than the site default: visible
   border, real shadow at rest (not just on hover), and a stronger lift. */
.blog-card {
    background: #fff;
    border: 1px solid #e2e6ea;
    overflow: hidden;
    color: #212529;
    box-shadow: 0 3px 12px rgba(17, 34, 51, .06);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.blog-card:hover {
    box-shadow: 0 12px 28px rgba(17, 122, 191, .16);
    transform: translateY(-4px);
    border-color: #c8e0f2;
    color: #212529;
}
.blog-card-img {
    height: 170px;
}
.blog-card-img .blog-badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
}
.blog-card-body {
    border-top: none;
}
.blog-card-body h3 {
    font-size: 1.05rem;
    color: #212529;
    transition: color .15s ease;
}
.blog-card:hover .blog-card-body h3 {
    color: #117abf;
}
.blog-excerpt {
    color: #6c757d;
    font-size: .9rem;
}

/* Article body */
.blog-article {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #2d3339;
}
.blog-article h2 {
    font-size: 1.4rem;
    color: #117abf;
}
.blog-article ul {
    padding-left: 1.25rem;
}
.blog-pullquote {
    border-left: 4px solid #117abf;
    background: #e2eff7;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    font-style: italic;
    color: #212529;
    border-radius: 0 10px 10px 0;
}
.blog-tags .blog-badge {
    background-color: #e2eff7;
    color: #117abf;
    border: 1px solid #b8d7ec;
    margin-right: .4rem;
    text-transform: none;
    font-weight: 500;
}

/* Sidebar */
.blog-sidebar-card {
    background: #e2eff7;
    border: 1px solid #d1e5f2;
}
.blog-sidebar-list li {
    padding: .5rem 0;
    border-bottom: 1px solid #b8d7ec;
}
.blog-sidebar-list li:last-child {
    border-bottom: none;
}
.blog-sidebar-list a {
    color: #212529;
    text-decoration: none;
    font-size: .925rem;
}
.blog-sidebar-list a:hover {
    color: #117abf;
}

@media (max-width: 767.98px) {
    .blog-featured {
        flex-direction: column;
    }
    .blog-featured-img {
        min-height: 200px;
    }
}
