/* ==========================================================================
   Motomarine v3 · Blog listing
   .cs-post = .cs-card with a category badge on the photo and a date / read
   time meta row. Layouts: grid, grid with sidebar (.cs-widget boxes),
   featured post and a .cs-carousel of posts.
   ========================================================================== */

/* --- Post card --- */
.cs-post .cs-card__media {
    position: relative;
}
.cs-post__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1;
}
.cs-post__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--muted);
}
.cs-post__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cs-post__meta i {
    color: var(--primary);
    font-size: 13px;
}
.cs-post .cs-card__body h2,
.cs-post .cs-card__body h3 {
    margin-bottom: 10px;
}
.cs-blog__pagination {
    margin-top: 40px;
}
.cs-blog__more {
    margin-top: 32px;
}

/* --- Featured post: photo left, copy right, one card --- */
.cs-post--featured {
    margin-bottom: 32px;
}
.cs-post--featured .row {
    min-height: 100%;
}
.cs-post--featured .cs-card__media {
    height: 100%;
}
.cs-post--featured .cs-card__media img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 420px;
}
.cs-post--featured .cs-card__body {
    justify-content: center;
    height: 100%;
    padding: 48px 48px 48px 44px;
}
.cs-post--featured .cs-card__body h2 {
    margin-bottom: 14px;
}
.cs-post--featured .cs-card__body > p {
    margin-bottom: 28px;
}

/* --- Sidebar widgets --- */
.cs-blog-sidebar {
    position: sticky;
    top: 110px;
}
.cs-widget {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--white);
    margin-bottom: 24px;
}
.cs-widget:last-child {
    margin-bottom: 0;
}
.cs-widget__title {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.cs-widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.cs-widget-list li + li {
    border-top: 1px solid var(--border);
}
.cs-widget-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: var(--heading);
}
.cs-widget-list a span {
    min-width: 28px;
    padding: 2px 8px;
    border-radius: 0;
    background: var(--light-bg);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: var(--muted);
}
.cs-widget-list a:hover {
    color: var(--primary);
}
.cs-widget-post {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}
.cs-widget-posts .cs-widget-post:first-child {
    padding-top: 0;
    border-top: 0;
}
.cs-widget-posts .cs-widget-post:last-child {
    padding-bottom: 0;
}
.cs-widget-post img {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border-radius: 4px;
    object-fit: cover;
}
.cs-widget-post__date {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--primary);
}
.cs-widget-post__title {
    display: block;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--heading);
}
.cs-widget-post__title:hover {
    color: var(--primary);
}
.cs-widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cs-widget-tags a {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 0;
    font-size: 13px;
    color: var(--heading);
    transition: var(--transition);
}
.cs-widget-tags a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .cs-blog-sidebar {
        position: static;
    }
    .cs-post--featured .cs-card__media img {
        min-height: 0;
        aspect-ratio: 20 / 13;
    }
    .cs-post--featured .cs-card__body {
        padding: 32px 28px;
    }
}


/* ==========================================================================
   v5 · Modern blog cards
   Light shadow, pill category over the photo, plain red meta icons, the
   read more link on a hairline. Sidebar widgets get red eyebrow titles.
   ========================================================================== */
.cs-post {
    border-color: var(--border-light);
    box-shadow: rgba(15, 23, 43, .05) 0 1px 3px 0;
}
.cs-post .cs-card__media {
    overflow: hidden;
}
.cs-post .cs-card__media img {
    transition: transform .6s ease;
}
.cs-post .cs-card__media:hover img {
    transform: scale(1.05);
}
.cs-post__badge {
    border-radius: 40px;
    padding-right: 12px;
    padding-left: 12px;
}
.cs-post__meta {
    gap: 16px;
}
.cs-post__meta i {
    color: var(--primary);
}
.cs-post .cs-card__actions {
    width: 100%;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}
.cs-post h3 a:hover,
.cs-post .h4 a:hover {
    color: var(--primary);
}
.bg-lighter .cs-post {
    border-color: transparent;
}
.bg-dark .cs-post {
    box-shadow: none;
}
.bg-dark .cs-post .cs-card__actions {
    border-top-color: rgba(255, 255, 255, .1);
}
.bg-dark .cs-post {
    border-color: rgba(255, 255, 255, .12);
}
