/* Reusable blog post and blog index layout */
.blog-shell {
    background: #f7f8fa;
    padding-top: 118px;
}

.blog-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background-image:
        linear-gradient(90deg, rgba(12, 28, 45, 0.94) 0%, rgba(12, 28, 45, 0.78) 46%, rgba(12, 28, 45, 0.2) 100%),
        var(--blog-hero-image);
    background-size: cover;
    background-position: center;
}

.blog-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 84px;
    background: linear-gradient(176deg, transparent 0 48%, #f7f8fa 49% 100%);
    pointer-events: none;
}

.blog-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 120px 24px 120px;
}

.blog-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.78);
    font-family: brother-1816, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-breadcrumb a {
    color: #fff;
}

.blog-breadcrumb span {
    color: rgba(255, 255, 255, 0.72);
}

.blog-category {
    display: inline-block;
    margin-bottom: 18px;
    color: #ff7547;
    font-family: brother-1816, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.blog-title {
    max-width: 850px;
    margin: 0;
    color: #fff;
    font-family: brother-1816, sans-serif;
    font-size: clamp(2.4rem, 5vw, 5.4rem);
    font-weight: 700;
    line-height: 0.98;
    text-transform: uppercase;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.88);
    font-family: brother-1816, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-meta span + span::before {
    content: "/";
    margin-right: 12px;
    color: #ff7547;
}

.blog-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 58px 24px 80px;
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px) 340px;
    gap: 56px;
    align-items: start;
}

.blog-article {
    color: #1d2630;
    font-size: 1.04rem;
    line-height: 1.78;
}

.blog-article > p:first-child {
    font-size: 1.2rem;
    line-height: 1.72;
    color: #1a2e44;
}

.blog-article h2,
.blog-article h3,
.blog-article h4 {
    font-family: brother-1816, sans-serif;
    color: #071f3a;
    font-weight: 700;
    line-height: 1.18;
}

.blog-article h2 {
    margin: 58px 0 22px;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    text-transform: uppercase;
}

.blog-article h3 {
    margin: 0 0 16px;
    font-size: 1.34rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.blog-article h4 {
    margin: 24px 0 10px;
    font-size: 0.96rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.blog-article p {
    margin: 0 0 20px;
}

.blog-article ul,
.blog-article ol {
    margin: 0 0 28px;
    padding-left: 24px;
}

.blog-article li {
    margin-bottom: 10px;
}

.provider-card,
.blog-callout,
.faq-item-static {
    background: #fff;
    border: 1px solid rgba(26, 46, 68, 0.08);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(26, 46, 68, 0.07);
}

.provider-card {
    margin: 26px 0;
    padding: 30px;
    border-left: 5px solid #ff7547;
}

.provider-card p:last-child {
    margin-bottom: 0;
}

.blog-table-wrap {
    overflow-x: auto;
    margin: 18px 0 24px;
    border-radius: 8px;
    border: 1px solid rgba(26, 46, 68, 0.1);
}

.blog-article table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
    background: #fff;
}

.blog-article th,
.blog-article td {
    padding: 13px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(26, 46, 68, 0.08);
    vertical-align: top;
}

.blog-article th {
    background: #1a2e44;
    color: #fff;
    font-family: brother-1816, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-article tr:last-child td {
    border-bottom: 0;
}

.blog-article td:first-child {
    width: 34%;
    color: #071f3a;
    font-weight: 700;
}

.contact-box {
    margin-top: 22px;
    padding: 18px 20px;
    background: #f7f9fb;
    border-radius: 8px;
    border-top: 4px solid #2ba9e1;
}

.contact-box p {
    margin-bottom: 8px;
}

.blog-callout {
    margin: 34px 0;
    padding: 26px 30px;
    border-top: 5px solid #ff7547;
}

.blog-callout strong {
    color: #071f3a;
}

.blog-sidebar {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 18px;
}

.sidebar-card {
    padding: 26px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(26, 46, 68, 0.11);
    border: 1px solid rgba(26, 46, 68, 0.08);
}

.sidebar-card.primary {
    background: #071f3a;
    color: #fff;
    border-top: 5px solid #ff7547;
}

.sidebar-card .eyebrow,
.blog-index-hero .eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #ff7547;
    font-family: brother-1816, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sidebar-card h2,
.sidebar-card h3 {
    margin: 0 0 12px;
    font-family: brother-1816, sans-serif;
    font-weight: 700;
    line-height: 1.18;
    text-transform: uppercase;
}

.sidebar-card h2 {
    font-size: 1.45rem;
}

.sidebar-card h3 {
    color: #071f3a;
    font-size: 1rem;
}

.sidebar-card.primary h2,
.sidebar-card.primary h3 {
    color: #fff;
}

.sidebar-card p {
    margin: 0 0 18px;
    line-height: 1.65;
}

.sidebar-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-card li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(26, 46, 68, 0.09);
    color: #1d2630;
    font-weight: 700;
}

.sidebar-card li:last-child {
    border-bottom: 0;
}

.sidebar-card.primary li {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.16);
}

.sidebar-actions {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.sidebar-actions .btn {
    width: 100%;
    min-width: 0;
    margin: 0;
    justify-content: center;
}

.blog-bottom-cta {
    margin: 72px 0 0;
    padding: 42px;
    border-radius: 8px;
    background: linear-gradient(135deg, #071f3a 0%, #123b5c 100%);
    color: #fff;
    text-align: center;
}

.blog-bottom-cta h2 {
    max-width: 760px;
    margin: 0 auto 14px;
    color: #fff;
    font-family: brother-1816, sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.blog-bottom-cta p {
    max-width: 720px;
    margin: 0 auto 24px;
    line-height: 1.65;
}

.author-profile {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 20px;
    align-items: start;
    margin-top: 54px;
    padding: 26px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(26, 46, 68, 0.1);
    box-shadow: 0 12px 30px rgba(26, 46, 68, 0.08);
}

.author-avatar {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #071f3a;
    color: #fff;
    font-family: brother-1816, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.author-photo {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 8px 20px rgba(26, 46, 68, 0.18);
}

.author-label {
    display: block;
    margin-bottom: 6px;
    color: #ff7547;
    font-family: brother-1816, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.author-profile h2 {
    margin: 0 0 8px;
    color: #071f3a;
    font-family: brother-1816, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.author-profile p {
    margin: 0;
    color: #34404b;
    line-height: 1.65;
}

.author-profile .author-title {
    margin-bottom: 8px;
    color: #071f3a;
    font-weight: 700;
}

.author-link {
    display: inline-flex;
    margin-top: 14px;
    color: #ff7547;
    font-weight: 700;
}

.author-link:hover {
    color: #071f3a;
}

.author-profile-link {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 20px;
    grid-column: 1 / -1;
    color: inherit;
}

.author-profile-link:hover h2,
.blog-meta a:hover {
    color: #ff7547;
}

.blog-meta a,
.blog-card .meta a {
    color: inherit;
}

.author-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 44px 24px 90px;
}

.author-hero {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 28px;
    align-items: center;
    padding: 42px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(26, 46, 68, 0.08);
    box-shadow: 0 16px 38px rgba(26, 46, 68, 0.11);
}

.author-hero .author-avatar {
    width: 112px;
    height: 112px;
    font-size: 1.8rem;
}

.author-hero .author-photo {
    width: 112px;
    height: 112px;
}

.author-hero h1 {
    margin: 0 0 12px;
    color: #071f3a;
    font-family: brother-1816, sans-serif;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
}

.author-hero p {
    max-width: 820px;
    margin: 0;
    color: #34404b;
    font-size: 1.12rem;
    line-height: 1.7;
}

.author-hero .author-title {
    margin-bottom: 10px;
    color: #071f3a;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.author-posts {
    margin-top: 56px;
}

.author-posts h2 {
    color: #071f3a;
    font-family: brother-1816, sans-serif;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.related-posts {
    margin-top: 70px;
}

.related-posts h2,
.blog-index-hero h1 {
    color: #071f3a;
    font-family: brother-1816, sans-serif;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.related-grid,
.blog-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.related-card,
.blog-card {
    display: block;
    min-height: 210px;
    padding: 24px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(26, 46, 68, 0.08);
    box-shadow: 0 12px 30px rgba(26, 46, 68, 0.08);
}

.related-card span,
.blog-card span {
    color: #ff7547;
    font-family: brother-1816, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.related-card h3,
.blog-card h2 {
    margin: 12px 0;
    color: #071f3a;
    font-family: brother-1816, sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}

.related-card p,
.blog-card p {
    color: #34404b;
    line-height: 1.6;
}

.faq-item-static {
    margin: 16px 0;
    padding: 24px;
}

.faq-item-static h3 {
    font-size: 1rem;
}

.blog-index-hero {
    padding: 120px 24px 64px;
    background: linear-gradient(180deg, #fff 0%, #f7f8fa 100%);
    text-align: center;
}

.blog-index-hero h1 {
    max-width: 820px;
    margin: 0 auto 16px;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.blog-index-hero p {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.12rem;
    line-height: 1.7;
}

.blog-index-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 24px 90px;
}

.blog-card {
    min-height: 260px;
}

.blog-card .meta {
    display: block;
    margin-top: 18px;
    color: #6a7480;
    letter-spacing: 0.05em;
}

@media (max-width: 1023px) {
    .blog-shell {
        padding-top: 80px;
    }

    .blog-layout {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .blog-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .related-grid,
    .blog-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .blog-hero {
        min-height: 560px;
        background-position: center right 35%;
    }

    .blog-hero-content {
        padding: 96px 20px 104px;
    }

    .blog-title {
        font-size: 2.3rem;
    }

    .blog-meta span + span::before {
        content: "";
        margin-right: 0;
    }

    .blog-wrap {
        padding: 44px 18px 64px;
    }

    .provider-card,
    .blog-callout,
    .sidebar-card,
    .faq-item-static {
        padding: 22px;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
    }

    .blog-bottom-cta {
        padding: 32px 22px;
    }

    .author-profile {
        grid-template-columns: 1fr;
    }

    .author-profile-link,
    .author-hero {
        grid-template-columns: 1fr;
    }

    .author-hero {
        padding: 28px 22px;
    }
}
