:root {
    --primary: #839647;
    --primary-dark: #72843b;
    --surface: #ffffff;
    --background: #f3f4f6;
    --text-main: #202124;
    --text-muted: #7a7d81;
    --border: #e3e5e8;
    --radius-lg: 22px;
    --transition: all 0.25s ease;
}

body.blog,
body.home,
body.archive,
body.category {
    background: var(--background);
}

.knowledge-hub *,
.knowledge-hub *::before,
.knowledge-hub *::after {
    box-sizing: border-box;
}

.knowledge-hub {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 34px 20px 120px;
    color: var(--text-main);
}

.knowledge-hub a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.knowledge-hub img {
    display: block;
    max-width: 100%;
    height: auto;
}

.breadcrumbs {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 26px;
}

.hub-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 34px;
}

.hub-header h1 {
    margin: 0 0 14px;
    font-size: 64px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.subtitle {
    margin: 0 auto 28px;
    max-width: 620px;
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1.6;
}

.hub-search {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 640px;
    height: 66px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
}

.search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #8d9196;
    font-size: 17px;
}

.hub-search input {
    flex: 1;
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 18px 0 54px;
    font-size: 16px;
    color: var(--text-main);
}

.btn-search {
    height: 100%;
    border: 0;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 0 32px;
    cursor: pointer;
}

.hub-topics {
    margin-bottom: 40px;
}

.topic-scroll-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.topic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    color: #3a3c40;
    cursor: pointer;
}

.topic-btn.active,
.topic-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.hub-content {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .9fr);
    gap: 28px;
    align-items: start;
    margin-bottom: 74px;
}

.hub-column {
    min-width: 0;
}

.hub-left-grid,
.hub-right-grid {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.hub-left-grid {
    margin-top: 22px;
}

.post-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease;
}

.post-card:hover {
    transform: translateY(-2px);
    border-color: #d7dbe0;
}

.card-img-wrapper {
    position: relative;
    background: #e8e8e8;
    overflow: hidden;
    aspect-ratio: 1.62 / 1;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured .card-img-wrapper {
    aspect-ratio: 1.48 / 1;
    min-height: 420px;
}

.badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.image-reading-time {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 13px;
    border-radius: 999px;
    background: rgba(32, 33, 36, 0.72);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.featured .card-body {
    padding: 34px 34px 28px;
}

.featured h2 {
    margin: 0 0 14px;
    font-size: 28px;
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.featured .excerpt {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
}

.card-body {
    padding: 22px 22px 18px;
}

.card-body h3 {
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #efefef;
}

.featured .card-footer {
    padding-top: 18px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #e5e5e5;
}

.author-name {
    display: block;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
}

.author-role {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-muted);
}

.author-name-only {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.no-posts-found {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
}

.hub-experts {
    margin-bottom: 52px;
}

.hub-experts h2,
.hub-faq h2 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-desc {
    margin: 0 0 26px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.expert-card {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 126px;
    padding: 18px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
}

.expert-card img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    background: #e5e5e5;
}

.expert-details h4 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
}

.expert-details p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
}

.hub-faq {
    margin-bottom: 42px;
}

.accordion {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
}

.accordion-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.accordion-item summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 20px 52px 20px 20px;
    font-size: 16px;
    font-weight: 600;
}

.accordion-item summary::-webkit-details-marker {
    display: none;
}

.accordion-item summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--primary);
}

.accordion-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.accordion-content {
    padding: 0 20px 20px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

.mobile-sticky-cta {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    padding: 14px 18px;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
}

.sticky-content {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 1199px) {
    .hub-header h1 {
        font-size: 52px;
    }

    .hub-content {
        grid-template-columns: 1.25fr 1fr;
    }

    .experts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .knowledge-hub {
        padding: 24px 16px 110px;
    }

    .hub-header h1 {
        font-size: 38px;
    }

    .subtitle {
        font-size: 16px;
    }

    .hub-search {
        height: 58px;
    }

    .desktop-text {
        display: none;
    }

    .topic-scroll-list {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .hub-content {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-bottom: 48px;
    }

    .featured .card-img-wrapper {
        min-height: auto;
    }

    .experts-grid,
    .accordion {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .hub-header h1 {
        font-size: 34px;
    }

    .featured .card-body {
        padding: 24px 22px 22px;
    }

    .featured h2 {
        font-size: 24px;
    }

    .sticky-content {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary {
        width: 100%;
    }
}
