/* 4Wires Blog */

.fw-blog-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.4;
    color: #6b7280;
}

.fw-blog-breadcrumbs a {
    color: #374151;
    text-decoration: none;
}

.fw-blog-breadcrumbs a:hover {
    color: #0ea5e9;
}

.fw-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.fw-blog-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.fw-blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .12);
}

.fw-blog-card__link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.fw-blog-card__image {
    aspect-ratio: 16 / 10;
    background: #f3f4f6;
    overflow: hidden;
}

.fw-blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fw-blog-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.fw-blog-card__body {
    padding: 22px;
}

.fw-blog-card__title {
    margin: 0 0 16px;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
    color: #111827;
}

.fw-blog-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
    font-size: 14px;
    color: #6b7280;
}

.fw-blog-card__author {
    display: inline-flex;
    gap: 8px;
    align-items: center;
}

.fw-blog-card__author img,
.fw-blog-card__author .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.fw-blog-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.fw-blog-pagination {
    margin-top: 34px;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.fw-blog-pagination .page-numbers {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #111827;
    text-decoration: none;
}

.fw-blog-pagination .current {
    background: #111827;
    color: #fff;
}

.fw-article-header {
    margin-bottom: 24px;
}

.fw-article-date {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
    color: #6b7280;
    font-size: 15px;
}

.fw-article-date span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
}

.fw-article-header h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.05;
    color: #111827;
}

.fw-author-box {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 24px;
    align-items: center;
    margin: 26px 0 34px;
    max-width: 720px;
}

.fw-author-box__image {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: #f3f4f6;
}

.fw-author-box__image img,
.fw-author-box__image .avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fw-author-box__name {
    display: inline-block;
    margin-bottom: 4px;
    color: #111827;
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
}

.fw-author-box__name:hover {
    color: #0ea5e9;
}

.fw-author-box__position {
    margin-bottom: 6px;
    color: #374151;
    font-style: italic;
    font-weight: 600;
}

.fw-author-box p {
    margin: 0;
    color: #4b5563;
    line-height: 1.5;
}

.fw-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 42px;
    align-items: start;
}

.fw-article-content {
    color: #111827;
    font-size: 18px;
    line-height: 1.75;
}

.fw-article-content h2 {
    scroll-margin-top: 120px;
    margin-top: 46px;
    margin-bottom: 18px;
    font-size: 32px;
    line-height: 1.2;
}

.fw-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.fw-article-content table {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}

.fw-article-content th,
.fw-article-content td {
    border: 1px solid #e5e7eb;
    padding: 12px;
}

.fw-article-toc {
    position: sticky;
    top: 120px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
}

.fw-article-toc h2 {
    margin: 0 0 16px;
    font-size: 24px;
    line-height: 1.2;
}

.fw-article-toc nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fw-article-toc a {
    color: #374151;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 15px;
    line-height: 1.35;
}

.fw-article-toc a:hover {
    color: #0ea5e9;
}

.fw-other-articles {
    margin-top: 64px;
    text-align: center;
}

.fw-other-articles h2 {
    margin: 0 0 26px;
    font-size: 34px;
}

.fw-other-articles__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 360px));
    justify-content: center;
    gap: 70px;
}

.fw-other-card a {
    color: inherit;
    text-decoration: none;
}

.fw-other-card__image {
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #f3f4f6;
    margin-bottom: 16px;
}

.fw-other-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fw-other-card h3 {
    margin: 0;
    font-size: 26px;
    line-height: 1.25;
}

.fw-blog-cta {
    margin: 36px auto 0;
    max-width: 420px;
    text-align: center;
}

.fw-blog-cta h2 {
    margin: 0 0 14px;
    font-size: 32px;
    line-height: 1.2;
}

.fw-blog-cta p {
    margin: 0 0 18px;
    color: #4b5563;
    font-weight: 600;
}

.fw-blog-cta a {
    display: inline-flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #444;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .fw-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fw-article-layout {
        grid-template-columns: 1fr;
    }

    .fw-article-toc {
        position: static;
        order: -1;
    }
}

@media (max-width: 767px) {
    .fw-blog-grid {
        grid-template-columns: 1fr;
    }

    .fw-blog-card__meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .fw-author-box {
        grid-template-columns: 96px 1fr;
        gap: 16px;
    }

    .fw-author-box__image {
        border-radius: 12px;
    }

    .fw-article-content {
        font-size: 16px;
    }

    .fw-article-content h2 {
        font-size: 26px;
    }

    .fw-other-articles__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .fw-other-card h3 {
        font-size: 22px;
    }
}
