/* SFELK Blog — mockup-aligned layout */

.sf-blog-page {
    margin: 0;
    font-family: Outfit, 'Segoe UI', sans-serif;
    color: #1a2b45;
    background: #eef1f6;
}

.sf-blog {
    padding: 28px 0 56px;
}

.sf-blog .wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* Filter pills */
.sf-blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.sf-blog-filters a,
.sf-blog-filters button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: transform .28s ease, box-shadow .28s ease, background .28s ease, color .28s ease;
    animation: sfBlogBreathe 5.2s ease-in-out infinite;
}

.sf-blog-filters a:nth-child(2),
.sf-blog-filters a:nth-child(4),
.sf-blog-filters a:nth-child(6) {
    animation-delay: .35s;
}

.sf-blog-filters a.is-idle {
    background: #dde6f5;
    color: #0b2c78;
    border-color: rgba(11, 44, 120, .08);
    box-shadow: 0 4px 14px rgba(11, 44, 120, .06);
}

.sf-blog-filters a.is-idle:hover {
    background: #cfdcf3;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(11, 44, 120, .12);
}

.sf-blog-filters a.is-active {
    background: linear-gradient(135deg, #0b2c78, #0a2568);
    color: #fff;
    box-shadow: 0 12px 28px rgba(11, 44, 120, .28);
    animation: sfBlogBreatheActive 4.8s ease-in-out infinite;
}

.sf-blog-filters a.is-active i {
    opacity: .95;
}

/* Grid */
.sf-blog-layout {
    display: grid;
    gap: 28px;
}

@media (min-width: 1024px) {
    .sf-blog-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        align-items: start;
    }
}

/* Cards */
.sf-blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

@media (min-width: 640px) {
    .sf-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }
}

.sf-blog-layout--full {
    grid-template-columns: 1fr !important;
}

.sf-blog-grid--three {
    gap: 24px;
}

@media (min-width: 720px) {
    .sf-blog-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .sf-blog-grid--three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 26px;
    }
}

.sf-blog-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(12, 32, 80, .08);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(11, 44, 120, .06);
    transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease;
}

.sf-blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 48px rgba(11, 44, 120, .14);
}

.sf-blog-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.sf-blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}

.sf-blog-card:hover .sf-blog-card__media img {
    transform: scale(1.06);
}

.sf-blog-date {
    position: absolute;
    top: 14px;
    left: 14px;
    min-width: 64px;
    padding: 8px 10px 10px;
    border-radius: 12px;
    background: linear-gradient(160deg, #e10600, #b90a06);
    color: #fff;
    text-align: center;
    box-shadow: 0 10px 24px rgba(225, 6, 0, .35);
    line-height: 1.05;
    animation: sfBlogBreathe 4.6s ease-in-out infinite;
}

.sf-blog-date small {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .92;
}

.sf-blog-date strong {
    display: block;
    font-size: 26px;
    font-weight: 800;
    margin: 2px 0;
}

.sf-blog-date span {
    display: block;
    font-size: 11px;
    font-weight: 600;
    opacity: .88;
}

.sf-blog-date i {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 10px;
    opacity: .75;
}

.sf-blog-cat {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(11, 44, 120, .92);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
}

.sf-blog-card__body {
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sf-blog-card__body h3 {
    margin: 0 0 10px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.15rem, 2vw, 1.28rem);
    font-weight: 700;
    line-height: 1.35;
    color: #071e52;
}

.sf-blog-card__body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color .25s ease;
}

.sf-blog-card__body h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
}

.sf-blog-card__body h3 a:hover {
    color: #0b2c78;
}

.sf-blog-card__body p {
    margin: 0 0 16px;
    font-size: 14.5px;
    line-height: 1.65;
    color: #4a5d78;
    flex: 1;
}

.sf-blog-read {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 14.5px;
    color: #0b2c78;
    text-decoration: none;
    transition: gap .25s ease, color .25s ease, transform .25s ease;
}

.sf-blog-read:hover {
    color: #e10600;
    gap: 12px;
}

.sf-blog-read svg {
    width: 18px;
    height: 18px;
    transition: transform .25s ease;
}

.sf-blog-read:hover svg {
    transform: translateX(3px);
}

/* Pagination */
.sf-blog-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 34px;
}

.sf-blog-pager a,
.sf-blog-pager span {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    border: 2px solid rgba(11, 44, 120, .18);
    color: #0b2c78;
    background: #fff;
    transition: all .28s ease;
}

.sf-blog-pager a:hover {
    border-color: #0b2c78;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(11, 44, 120, .12);
}

.sf-blog-pager .is-current {
    background: #0b2c78;
    color: #fff;
    border-color: #0b2c78;
    box-shadow: 0 10px 24px rgba(11, 44, 120, .25);
}

.sf-blog-pager .is-disabled {
    opacity: .45;
    pointer-events: none;
}

.sf-blog-pager--next {
    gap: 14px 18px;
}

.sf-blog-pager__btn {
    width: auto !important;
    min-width: 124px;
    height: auto !important;
    padding: 12px 22px;
    border-radius: 999px !important;
    font-size: 14px;
    letter-spacing: 0.01em;
}

.sf-blog-pager__btn--primary {
    background: #0b2c78;
    color: #fff;
    border-color: #0b2c78;
    box-shadow: 0 12px 28px rgba(11, 44, 120, .22);
}

.sf-blog-pager__btn--primary:hover {
    background: #081f57;
    color: #fff;
}

.sf-blog-catalog-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 42px;
    padding: 8px 16px 4px;
    width: 100%;
    text-align: center;
}

.sf-blog-catalog-footer .sf-blog-pager__btn--primary {
    min-width: 168px;
}

.sf-blog-pager__status {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 10px;
    margin: 0;
    padding: 14px 28px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #4a5d78;
    letter-spacing: 0.02em;
    background: linear-gradient(165deg, #ffffff 0%, #f3f6fb 100%);
    border: 1px solid rgba(11, 44, 120, 0.1);
    border-radius: 999px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 10px 28px rgba(11, 44, 120, 0.07);
}

.sf-blog-pager__status-label {
    color: #6b7c94;
    font-weight: 600;
}

.sf-blog-pager__status-num {
    font-weight: 800;
    font-size: 16px;
    color: #0b2c78;
    font-variant-numeric: tabular-nums;
    min-width: 1.25ch;
    text-align: center;
}

/* Sidebar */
.sf-blog-aside {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.sf-blog-widget {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(12, 32, 80, .08);
    border: 1px solid rgba(11, 44, 120, .06);
    transition: transform .4s ease, box-shadow .4s ease;
}

.sf-blog-widget:hover {
    box-shadow: 0 18px 40px rgba(12, 32, 80, .11);
}

.sf-blog-widget__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #0b2c78, #071e52);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
}

.sf-blog-widget__head i {
    font-size: 15px;
    opacity: .95;
}

.sf-blog-widget__body {
    padding: 14px 16px 16px;
}

.sf-blog-recent a {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 10px 4px;
    text-decoration: none;
    border-radius: 12px;
    transition: background .25s ease, transform .25s ease;
}

.sf-blog-recent a:hover {
    background: #f3f6fb;
    transform: translateX(4px);
}

.sf-blog-recent img {
    width: 72px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
}

.sf-blog-recent strong {
    display: block;
    font-size: 13.5px;
    font-weight: 800;
    color: #0b2c78;
    line-height: 1.35;
    margin-bottom: 6px;
}

.sf-blog-recent time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.sf-blog-cats a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 6px;
    text-decoration: none;
    color: #243b5c;
    font-weight: 650;
    font-size: 14px;
    border-bottom: 1px solid #edf1f7;
    transition: color .25s ease, padding-left .25s ease;
}

.sf-blog-cats a:last-child {
    border-bottom: 0;
}

.sf-blog-cats a:hover {
    color: #0b2c78;
    padding-left: 6px;
}

.sf-blog-cats a span:first-child i {
    margin-right: 8px;
    color: #5b7090;
    width: 16px;
}

.sf-blog-cats .count {
    min-width: 30px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #e8edf5;
    color: #4a5d78;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.sf-blog-newsletter p {
    margin: 0 0 12px;
    font-size: 13.5px;
    line-height: 1.55;
    color: #4a5d78;
}

.sf-blog-newsletter form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sf-blog-newsletter input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #d7deea;
    font: inherit;
    outline: none;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.sf-blog-newsletter input:focus {
    border-color: #0b2c78;
    box-shadow: 0 0 0 3px rgba(11, 44, 120, .12);
}

.sf-blog-newsletter button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #e10600, #c8102e);
    color: #fff;
    font-weight: 800;
    font-size: 14.5px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 10px 24px rgba(225, 6, 0, .28);
    transition: transform .28s ease, box-shadow .28s ease;
    animation: sfBlogBreathe 5s ease-in-out infinite;
}

.sf-blog-newsletter button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(225, 6, 0, .35);
}

.sf-blog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(12, 32, 80, .06);
}

/* Scroll reveal */
.sf-blog [data-sf-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .75s cubic-bezier(.2, .8, .2, 1), transform .75s cubic-bezier(.2, .8, .2, 1);
}

.sf-blog [data-sf-reveal].is-in {
    opacity: 1;
    transform: none;
}

.sf-blog [data-sf-reveal-delay="1"] { transition-delay: .08s; }
.sf-blog [data-sf-reveal-delay="2"] { transition-delay: .16s; }
.sf-blog [data-sf-reveal-delay="3"] { transition-delay: .24s; }

@keyframes sfBlogBreathe {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes sfBlogBreatheActive {
    0%, 100% { transform: translateY(0); box-shadow: 0 12px 28px rgba(11, 44, 120, .28); }
    50% { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(11, 44, 120, .32); }
}

@media (prefers-reduced-motion: reduce) {
    .sf-blog-filters a,
    .sf-blog-date,
    .sf-blog-newsletter button {
        animation: none !important;
    }
    .sf-blog [data-sf-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}