/* ==========================================================================
   Blog listing  (/blogs.html)
   --------------------------------------------------------------------------
   Featured post, then the searchable, sortable archive. Hero,
   heading and CTA come from inner-pages.css; tokens from mega-menu.css.
   ========================================================================== */

.sd-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   Featured post
   -------------------------------------------------------------------------- */

.sd-blog-featured {
    padding: 50px 0 0;
    background: #fff;
}

.sd-feat {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--sd-line);
    border-radius: 18px;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 10px 34px rgba(16, 38, 73, .09);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.sd-feat:hover {
    border-color: rgba(232, 106, 56, .45);
    box-shadow: 0 20px 46px rgba(16, 38, 73, .14);
}

.sd-feat__media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--sd-tint);
    line-height: 0;
}

.sd-feat__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.sd-feat:hover .sd-feat__media img {
    transform: scale(1.04);
}

.sd-feat__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 36px 38px;
}

.sd-feat__flag {
    align-self: flex-start;
    padding: 5px 13px;
    border-radius: 50px;
    background: var(--sd-orange);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.sd-feat__title {
    font-size: 27px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--sd-navy);
}

.sd-feat:hover .sd-feat__title {
    color: var(--sd-orange-ink);
}

.sd-feat__excerpt {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--sd-muted);
}

.sd-feat__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--sd-muted);
}

.sd-feat__meta i {
    color: var(--sd-orange);
    margin-right: 5px;
}

.sd-feat__more {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 4px;
    color: var(--sd-blue);
    font-size: 15.5px;
    font-weight: 700;
}

.sd-feat__more i {
    font-size: 12px;
    transition: transform .25s ease;
}

.sd-feat:hover .sd-feat__more {
    color: var(--sd-orange);
}

.sd-feat:hover .sd-feat__more i {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Toolbar
   -------------------------------------------------------------------------- */

.sd-blog {
    padding: 46px 0 60px;
    background: #fff;
}

.sd-blog__bar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.sd-blog__search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 340px;
}

.sd-blog__search > i {
    position: absolute;
    left: 18px;
    font-size: 15px;
    color: var(--sd-muted);
    pointer-events: none;
}

.sd-blog__search input {
    width: 100%;
    padding: 15px 46px;
    border: 1px solid var(--sd-line);
    border-radius: 50px;
    background: #fff;
    font-family: inherit;
    font-size: 16px;
    color: var(--sd-navy);
    transition: border-color .2s ease, box-shadow .2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.sd-blog__search input::placeholder {
    color: #9AA8BE;
}

.sd-blog__search input:focus {
    outline: none;
    border-color: var(--sd-blue);
    box-shadow: 0 0 0 3px rgba(18, 74, 154, .12);
}

.sd-blog__search input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.sd-blog__clear {
    position: absolute;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(18, 74, 154, .08);
    color: var(--sd-navy);
    font-size: 12px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.sd-blog__clear:hover {
    background: var(--sd-orange);
    color: #fff;
}

.sd-blog__sort {
    position: relative;
    display: flex;
    align-items: center;
}

.sd-blog__sort select {
    padding: 15px 42px 15px 20px;
    border: 1px solid var(--sd-line);
    border-radius: 50px;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--sd-navy);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.sd-blog__sort select:focus {
    outline: none;
    border-color: var(--sd-blue);
    box-shadow: 0 0 0 3px rgba(18, 74, 154, .12);
}

.sd-blog__sort > i {
    position: absolute;
    right: 18px;
    font-size: 13px;
    color: var(--sd-muted);
    pointer-events: none;
}

.sd-blog__count {
    margin: 0 0 22px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--sd-muted);
    min-height: 1.2em;
}

/* --------------------------------------------------------------------------
   Post grid
   -------------------------------------------------------------------------- */

.sd-blog__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.sd-post {
    display: flex;
    flex-direction: column;
    width: calc((100% - 48px) / 3);
    overflow: hidden;
    border: 1px solid var(--sd-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(16, 38, 73, .05);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.sd-post[hidden] {
    display: none;
}

.sd-post:hover {
    border-color: rgba(232, 106, 56, .4);
    box-shadow: 0 16px 34px rgba(16, 38, 73, .11);
    transform: translateY(-3px);
}

.sd-post__media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--sd-tint);
    line-height: 0;
}

.sd-post__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.sd-post:hover .sd-post__media img {
    transform: scale(1.05);
}

.sd-post__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 22px;
}

.sd-post__title {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;
}

.sd-post__title a {
    color: var(--sd-navy);
    text-decoration: none;
}

.sd-post:hover .sd-post__title a {
    color: var(--sd-orange-ink);
}

.sd-post__excerpt {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--sd-muted);
}

.sd-post__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: auto 0 0;
    padding-top: 14px;
    border-top: 1px dashed var(--sd-line);
}

.sd-post__date {
    font-size: 12.5px;
    color: var(--sd-muted);
}

.sd-post__date i {
    margin-right: 6px;
    color: var(--sd-orange);
}

.sd-post__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sd-blue);
    font-size: 14px;
    font-weight: 700;
}

.sd-post__more i {
    font-size: 11px;
    transition: transform .25s ease;
}

.sd-post:hover .sd-post__more {
    color: var(--sd-orange);
}

.sd-post:hover .sd-post__more i {
    transform: translateX(4px);
}

.sd-blog__empty {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 10px 0 0;
    padding: 18px 20px;
    border-left: 3px solid var(--sd-orange);
    border-radius: 0 10px 10px 0;
    background: var(--sd-tint);
    font-size: 15px;
    line-height: 1.6;
    color: var(--sd-muted);
}

.sd-blog__empty[hidden] {
    display: none;
}

.sd-blog__empty i {
    margin-top: 3px;
    color: var(--sd-orange);
}

.sd-blog__more {
    display: flex;
    justify-content: center;
    margin-top: 38px;
}

.sd-blog__more button[hidden] {
    display: none;
}

/* --------------------------------------------------------------------------
   Load more
   --------------------------------------------------------------------------
   Its own control rather than a generic button: it stays put while the list
   grows beneath it, so it reads as a continuation rather than a submit.
   -------------------------------------------------------------------------- */

.sd-loadmore {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px 14px 30px;
    border: 1px solid var(--sd-line);
    border-radius: 50px;
    background: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    color: var(--sd-blue);
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(16, 38, 73, .07);
    transition: border-color .25s ease, color .25s ease, box-shadow .25s ease, transform .2s ease;
}

.sd-loadmore:hover {
    border-color: var(--sd-orange);
    color: var(--sd-orange-ink);
    box-shadow: 0 14px 30px rgba(232, 106, 56, .2);
    transform: translateY(-2px);
}

.sd-loadmore:focus-visible {
    outline: 2px solid var(--sd-orange);
    outline-offset: 3px;
}

.sd-loadmore:active {
    transform: translateY(0);
}

.sd-loadmore__count {
    padding: 3px 11px;
    border-radius: 50px;
    background: rgba(18, 74, 154, .08);
    color: var(--sd-muted);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .01em;
    transition: background .25s ease, color .25s ease;
}

.sd-loadmore__count:empty {
    display: none;
}

.sd-loadmore:hover .sd-loadmore__count {
    background: rgba(232, 106, 56, .12);
    color: var(--sd-orange-ink);
}

.sd-loadmore__icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--sd-blue);
    color: #fff;
    font-size: 13px;
    transition: background .25s ease, transform .25s ease;
}

.sd-loadmore:hover .sd-loadmore__icon {
    background: var(--sd-orange);
    transform: translateY(2px);
}

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

@media (max-width: 991.98px) {
    .sd-feat {
        grid-template-columns: minmax(0, 1fr);
    }

    .sd-feat__body {
        padding: 26px 24px 30px;
    }

    .sd-feat__title {
        font-size: 22px;
    }

    .sd-post {
        width: calc((100% - 24px) / 2);
    }
}

@media (max-width: 767.98px) {
    .sd-blog-featured {
        padding-top: 34px;
    }

    .sd-blog {
        padding: 32px 0 44px;
    }

    .sd-post {
        width: 100%;
    }

    .sd-blog__search,
    .sd-blog__sort,
    .sd-blog__sort select {
        flex: 1 1 100%;
        width: 100%;
    }

}

@media (prefers-reduced-motion: reduce) {

    .sd-feat,
    .sd-feat__media img,
    .sd-feat__more i,
    .sd-post,
    .sd-post__media img,
    .sd-post__more i,
    .sd-loadmore,
    .sd-loadmore__icon {
        transition: none !important;
    }

    .sd-loadmore:hover {
        transform: none;
    }

    .sd-loadmore:hover .sd-loadmore__icon {
        transform: none;
    }

    .sd-post:hover {
        transform: none;
    }

    .sd-feat:hover .sd-feat__media img,
    .sd-post:hover .sd-post__media img {
        transform: none;
    }
}

@media (max-width: 767.98px) {
    .sd-loadmore {
        width: 100%;
        justify-content: center;
        padding-left: 22px;
    }
}
