.blog-hub {
    background:
        radial-gradient(circle at 78% 4%, rgba(91, 141, 255, 0.18), transparent 34%),
        linear-gradient(180deg, #f7fbff 0%, #eef5ff 46%, #f8fbff 100%);
}

.blog-hub-hero {
    padding: 54px 0 24px;
}

.blog-hub-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.82fr);
    gap: 46px;
    align-items: center;
}

.blog-hub-hero-copy {
    max-width: 760px;
}

.blog-hub-hero h1 {
    margin: 0;
    color: #07142d;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: 0;
}

.blog-hub-hero p {
    max-width: 680px;
    margin: 18px 0 0;
    color: #52617a;
    font-size: 18px;
    line-height: 1.8;
}

.blog-hub-search {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    max-width: 760px;
    margin-top: 30px;
    padding: 8px;
    border: 1px solid rgba(20, 55, 113, 0.13);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 60px rgba(30, 89, 190, 0.10);
}

.blog-hub-search-icon {
    position: relative;
    width: 18px;
    height: 18px;
    margin-left: 8px;
    border: 2px solid #6782ad;
    border-radius: 999px;
}

.blog-hub-search-icon::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: -5px;
    width: 8px;
    height: 2px;
    border-radius: 999px;
    background: #6782ad;
    transform: rotate(45deg);
}

.blog-hub-search input {
    min-width: 0;
    height: 50px;
    border: 0;
    outline: none;
    background: transparent;
    color: #0b1730;
    font: inherit;
}

.blog-hub-search input::placeholder {
    color: #8291ab;
}

.blog-hub-search button {
    height: 50px;
    min-width: 116px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #1f6bff, #1448de);
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

.blog-hub-visual {
    position: relative;
    min-height: 310px;
}

.blog-hub-visual-window {
    position: absolute;
    inset: 20px 20px auto auto;
    width: min(390px, 100%);
    height: 230px;
    padding: 38px 24px 24px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(230, 239, 255, 0.88));
    box-shadow: 0 34px 80px rgba(48, 96, 190, 0.18);
    transform: rotate(-4deg);
}

.blog-hub-visual-window > span {
    position: absolute;
    top: 17px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #74a0ff;
}

.blog-hub-visual-window > span:nth-child(1) { left: 20px; }
.blog-hub-visual-window > span:nth-child(2) { left: 36px; opacity: 0.72; }
.blog-hub-visual-window > span:nth-child(3) { left: 52px; opacity: 0.48; }

.blog-hub-visual-card {
    display: grid;
    place-items: center;
    width: 128px;
    height: 102px;
    border-radius: 18px;
    background: #eff5ff;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.blog-hub-visual-card img {
    max-width: 82px;
    max-height: 58px;
}

.blog-hub-visual-card strong {
    color: #1d5ff2;
    font-size: 34px;
}

.blog-hub-visual-lines {
    position: absolute;
    right: 24px;
    bottom: 38px;
    display: grid;
    gap: 12px;
    width: 170px;
}

.blog-hub-visual-lines i {
    display: block;
    height: 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
}

.blog-hub-visual-lines i:nth-child(2) { width: 76%; }
.blog-hub-visual-lines i:nth-child(3) { width: 55%; }

.blog-hub-visual-book {
    position: absolute;
    left: 36px;
    bottom: 18px;
    width: 230px;
    height: 94px;
    border-radius: 12px 12px 32px 32px;
    background:
        linear-gradient(90deg, transparent 49%, rgba(37, 99, 235, 0.15) 50%, transparent 51%),
        linear-gradient(180deg, #ffffff, #dce9ff);
    box-shadow: 0 24px 60px rgba(66, 112, 202, 0.16);
    transform: rotate(6deg);
}

.blog-hub-visual-lens {
    position: absolute;
    right: 8px;
    bottom: 46px;
    width: 92px;
    height: 92px;
    border: 12px solid rgba(37, 99, 235, 0.20);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}

.blog-hub-visual-lens::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -24px;
    width: 64px;
    height: 14px;
    border-radius: 999px;
    background: #1f6bff;
    transform: rotate(42deg);
}

.blog-hub-content {
    padding: 0 0 68px;
}

.blog-hub-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.blog-hub-tab {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(20, 55, 113, 0.10);
    border-radius: 12px;
    color: #34435f;
    background: rgba(255, 255, 255, 0.86);
    font-weight: 850;
    box-shadow: 0 12px 32px rgba(16, 52, 115, 0.06);
}

.blog-hub-tab:hover,
.blog-hub-tab:focus-visible,
.blog-hub-tab.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #1f6bff, #164edc);
    box-shadow: 0 16px 38px rgba(37, 99, 235, 0.26);
}

.blog-hub-tab small {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    color: #1f5ded;
    background: #eef4ff;
    font-size: 12px;
}

.blog-hub-tab.is-active small,
.blog-hub-tab:hover small,
.blog-hub-tab:focus-visible small {
    color: #164edc;
    background: #fff;
}

.blog-hub-tab-icon {
    position: relative;
    width: 15px;
    height: 15px;
}

.blog-hub-tab-icon::before,
.blog-hub-tab-icon::after {
    content: "";
    position: absolute;
    inset: 1px;
    border: 2px solid currentColor;
    border-radius: 5px;
}

.blog-hub-tab-icon::after {
    inset: 5px 1px 1px 5px;
    border-radius: 4px;
}

.blog-hub-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 20px;
    align-items: start;
}

.blog-hub-main,
.blog-hub-sidebar {
    display: grid;
    gap: 18px;
}

.blog-hub-sidebar {
    position: sticky;
    top: 98px;
}

.blog-hub-featured,
.blog-hub-side-card,
.blog-hub-empty {
    border: 1px solid rgba(20, 55, 113, 0.10);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 22px 58px rgba(40, 78, 148, 0.09);
}

.blog-hub-featured {
    padding: 20px;
}

.blog-hub-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.blog-hub-section-title span {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: linear-gradient(135deg, #ffbd37, #ff8a00);
    box-shadow: 0 10px 24px rgba(255, 138, 0, 0.22);
}

.blog-hub-section-title h2,
.blog-hub-side-card h2 {
    margin: 0;
    color: #07142d;
    font-size: 20px;
    letter-spacing: 0;
}

.blog-hub-featured-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.46fr) minmax(0, 1fr);
    gap: 22px;
    color: inherit;
}

.blog-hub-featured-media,
.blog-hub-card-head {
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #eaf2ff, #f7fbff);
}

.blog-hub-featured-media {
    min-height: 235px;
}

.blog-hub-featured-media img,
.blog-hub-card-head img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-hub-image-fallback {
    display: grid;
    place-items: center;
    height: 100%;
    min-height: 235px;
    color: #fff;
    background:
        radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.34), transparent 26%),
        linear-gradient(135deg, #0f66ff, #102a67);
}

.blog-hub-image-fallback strong {
    font-size: 42px;
}

.blog-hub-featured-body {
    display: grid;
    align-content: center;
    gap: 13px;
}

.blog-hub-category {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    color: #1f5ded;
    background: #edf4ff;
    font-size: 13px;
    font-weight: 900;
}

.blog-hub-featured-body h3 {
    margin: 0;
    color: #0b1730;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.25;
    letter-spacing: 0;
}

.blog-hub-featured-body p,
.blog-hub-card p {
    margin: 0;
    color: #5b6880;
    line-height: 1.72;
}

.blog-hub-meta,
.blog-hub-card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    color: #738098;
    font-size: 14px;
}

.blog-hub-meta strong,
.blog-hub-card-foot strong {
    margin-left: auto;
    color: #1659e8;
}

.blog-hub-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.blog-hub-card {
    display: grid;
    gap: 12px;
    min-height: 100%;
    padding: 14px;
    border: 1px solid rgba(20, 55, 113, 0.10);
    border-radius: 16px;
    color: inherit;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 44px rgba(40, 78, 148, 0.08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.blog-hub-card:hover,
.blog-hub-card:focus-visible,
.blog-hub-featured-card:hover,
.blog-hub-featured-card:focus-visible {
    transform: translateY(-2px);
}

.blog-hub-card:hover,
.blog-hub-card:focus-visible {
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: 0 24px 58px rgba(37, 99, 235, 0.13);
}

.blog-hub-card-head {
    position: relative;
    display: grid;
    min-height: 146px;
}

.blog-hub-card-head .blog-hub-category {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
}

.blog-hub-card-mark {
    display: grid;
    place-items: end;
    min-height: 146px;
    padding: 18px;
    color: rgba(255, 255, 255, 0.94);
    background:
        radial-gradient(circle at 22% 26%, rgba(20, 184, 166, 0.36), transparent 28%),
        radial-gradient(circle at 76% 18%, rgba(255, 184, 77, 0.32), transparent 27%),
        linear-gradient(135deg, #1f6bff, #5b4fe8);
    font-size: 32px;
    font-weight: 950;
}

.blog-hub-card h3 {
    margin: 0;
    color: #0b1730;
    font-size: 19px;
    line-height: 1.38;
    letter-spacing: 0;
}

.blog-hub-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    min-height: 76px;
}

.blog-hub-card-foot {
    align-self: end;
}

.blog-hub-side-card {
    padding: 22px;
}

.blog-hub-rank-list,
.blog-hub-latest-list {
    display: grid;
    gap: 0;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.blog-hub-rank-list li + li,
.blog-hub-latest-list li + li {
    border-top: 1px solid rgba(20, 55, 113, 0.08);
}

.blog-hub-rank-list a,
.blog-hub-latest-list a {
    display: grid;
    gap: 10px;
    align-items: center;
    color: inherit;
}

.blog-hub-rank-list a {
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 12px 0;
}

.blog-hub-rank-list span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    color: #fff;
    background: #ff8a00;
    font-size: 12px;
    font-weight: 900;
}

.blog-hub-rank-list li:nth-child(n+4) span {
    color: #1f5ded;
    background: #edf4ff;
}

.blog-hub-rank-list strong,
.blog-hub-latest-list strong {
    overflow: hidden;
    color: #15223a;
    font-size: 14px;
    line-height: 1.45;
    text-overflow: ellipsis;
}

.blog-hub-latest-list a {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 13px 0;
}

.blog-hub-latest-list span {
    color: #7c889d;
    font-size: 13px;
}

.blog-hub-empty {
    display: grid;
    justify-items: start;
    gap: 12px;
    padding: 34px;
}

.blog-hub-empty h2,
.blog-hub-empty p {
    margin: 0;
}

.blog-hub-empty h2 {
    color: #07142d;
}

.blog-hub-empty p {
    color: #5b6880;
}

@media (max-width: 1080px) {
    .blog-hub-hero-grid,
    .blog-hub-layout {
        grid-template-columns: 1fr;
    }

    .blog-hub-visual {
        min-height: 260px;
    }

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

@media (max-width: 760px) {
    .blog-hub-hero {
        padding-top: 34px;
    }

    .blog-hub-hero h1 {
        font-size: 34px;
    }

    .blog-hub-hero p {
        font-size: 16px;
    }

    .blog-hub-search {
        grid-template-columns: 22px minmax(0, 1fr);
    }

    .blog-hub-search button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .blog-hub-visual {
        display: none;
    }

    .blog-hub-featured-card,
    .blog-hub-card-grid,
    .blog-hub-sidebar {
        grid-template-columns: 1fr;
    }

    .blog-hub-featured {
        padding: 14px;
    }

    .blog-hub-featured-media,
    .blog-hub-image-fallback {
        min-height: 210px;
    }

    .blog-hub-meta strong,
    .blog-hub-card-foot strong {
        width: 100%;
        margin-left: 0;
    }
}
