/* Cheetah Tool — Tutorials & Docs pages */
.ct-knowledge {
    --ct-navy: #05122d;
    --ct-gold: #fed200;
    --ct-text: #1e293b;
    --ct-muted: #64748b;
    --ct-bg: #f8fafc;
    --ct-white: #ffffff;
    --ct-radius: 14px;
    --ct-shadow: 0 10px 40px rgba(5, 18, 45, 0.08);
    font-family: 'Cheetah Graphik', 'Montserrat', system-ui, sans-serif;
    color: var(--ct-text);
    background: var(--ct-bg);
    padding: 52px 0 72px;
    min-height: 60vh;
}

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

body.page-tutorials .pusher > br,
body.page-docs .pusher > br {
    display: none !important;
}

.ct-knowledge .ct-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.ct-knowledge .ct-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 32px;
}

.ct-knowledge .ct-head h1 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--ct-navy);
    line-height: 1.25;
}

.ct-knowledge .ct-head p {
    margin: 0;
    color: var(--ct-muted);
    line-height: 1.75;
    font-size: 1.05rem;
}

.ct-knowledge .ct-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(254, 210, 0, 0.15);
    color: #92680a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.ct-knowledge-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

.ct-knowledge-sidebar {
    background: var(--ct-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--ct-radius);
    box-shadow: var(--ct-shadow);
    overflow: hidden;
    position: sticky;
    top: 72px;
}

.ct-knowledge-sidebar__head {
    background: linear-gradient(160deg, var(--ct-navy), #0a2a52);
    color: #fff;
    padding: 18px 20px;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ct-knowledge-sidebar__head span {
    font-size: 1.25rem;
}

.ct-knowledge-sidebar .megaMenu {
    padding: 12px 0;
    max-height: 70vh;
    overflow-y: auto;
}

.ct-knowledge-sidebar .megaUber {
    list-style: none;
    margin: 0;
    padding: 0 12px;
    text-align: left;
}

.ct-knowledge-sidebar .megaUber > .item {
    margin-bottom: 4px;
}

.ct-knowledge-sidebar .megaUber .nested {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--ct-navy);
    cursor: pointer;
    transition: background 0.15s;
}

.ct-knowledge-sidebar .megaUber .nested:hover {
    background: var(--ct-bg);
}

.ct-knowledge-sidebar .megaUber .item.active > .nested {
    background: rgba(254, 210, 0, 0.15);
    color: var(--ct-navy);
}

.ct-knowledge-sidebar .megaUber .menu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 12px;
    display: none;
}

.ct-knowledge-sidebar .megaUber .menu .item a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--ct-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;
    transition: background 0.15s, color 0.15s;
}

.ct-knowledge-sidebar .megaUber .menu .item a:hover,
.ct-knowledge-sidebar .megaUber .menu .item.active a {
    background: rgba(254, 210, 0, 0.12);
    color: var(--ct-navy);
}

.ct-knowledge-sidebar .megaUber .icon {
    opacity: 0.6;
    transition: transform 0.2s;
}

.ct-knowledge-main {
    min-width: 0;
}

.ct-knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.ct-video-card,
.ct-doc-card {
    background: var(--ct-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--ct-radius);
    overflow: hidden;
    box-shadow: var(--ct-shadow);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.ct-video-card:hover,
.ct-doc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(5, 18, 45, 0.1);
}

.ct-video-card .ui.embed {
    border-radius: 0 !important;
}

.ct-video-card__body,
.ct-doc-card__body {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.ct-video-card__body h3,
.ct-doc-card__body h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

.ct-video-card__body h3 a,
.ct-doc-card__body h3 a {
    color: var(--ct-navy);
    text-decoration: none;
}

.ct-video-card__body h3 a:hover,
.ct-doc-card__body h3 a:hover {
    color: #92680a;
}

.ct-video-card__desc,
.ct-doc-card__desc {
    font-size: 0.88rem;
    color: var(--ct-muted);
    line-height: 1.6;
    margin: 0 0 12px;
    flex: 1;
}

.ct-video-card__meta,
.ct-doc-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--ct-muted);
    padding-top: 12px;
    border-top: 1px solid #eef2f6;
}

.ct-video-card__meta span:last-child {
    font-weight: 600;
}

.ct-article-panel {
    background: var(--ct-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--ct-radius);
    padding: 28px;
    box-shadow: var(--ct-shadow);
    text-align: left;
}

.ct-article-panel h2 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ct-navy);
    line-height: 1.3;
}

.ct-article-panel__date {
    display: block;
    font-size: 0.85rem;
    color: var(--ct-muted);
    margin-bottom: 20px;
}

.ct-video-player {
    background: var(--ct-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--ct-radius);
    overflow: hidden;
    box-shadow: var(--ct-shadow);
    margin-bottom: 20px;
}

.ct-video-player .ui.embed {
    border-radius: 0 !important;
}

.ct-article-body {
    background: var(--ct-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--ct-radius);
    padding: 24px 28px;
    box-shadow: var(--ct-shadow);
    text-align: left;
    line-height: 1.75;
}

.ct-article-body h4 {
    margin: 0 0 16px;
    font-size: 1.1rem;
    color: var(--ct-navy);
}

.ct-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.88rem;
}

.ct-breadcrumb a {
    color: var(--ct-muted);
    text-decoration: none;
    font-weight: 600;
}

.ct-breadcrumb a:hover {
    color: var(--ct-navy);
}

.ct-breadcrumb .active {
    color: var(--ct-navy);
    font-weight: 700;
}

.ct-knowledge .pagination {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.ct-knowledge .ui.pagination.menu {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: var(--ct-shadow);
    overflow: hidden;
}

.ct-knowledge .ui.pagination.menu .item {
    font-weight: 600 !important;
    color: var(--ct-navy) !important;
}

.ct-knowledge .ui.pagination.menu .item.active.blue,
.ct-knowledge .ui.pagination.menu .item.active {
    background: var(--ct-gold) !important;
    color: var(--ct-navy) !important;
    font-weight: 800 !important;
}

.ct-doc-card {
    border-left: 4px solid var(--ct-gold);
}

.ct-doc-card__meta a {
    color: var(--ct-navy);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
}

.ct-doc-card__meta a:hover {
    color: #92680a;
}

.ct-article-panel .description,
.ct-article-body {
    font-size: 0.98rem;
}

.ct-article-panel .description img,
.ct-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}

.ct-article-panel .description h1,
.ct-article-panel .description h2,
.ct-article-panel .description h3,
.ct-article-body h1,
.ct-article-body h2,
.ct-article-body h3 {
    color: var(--ct-navy);
    margin: 1.4em 0 0.6em;
    line-height: 1.35;
}

.ct-article-panel .description ul,
.ct-article-panel .description ol,
.ct-article-body ul,
.ct-article-body ol {
    padding-left: 1.4em;
    margin: 0.75em 0;
}

.ct-article-panel .description a,
.ct-article-body a {
    color: #92680a;
    font-weight: 600;
}

.ct-article-panel .description table,
.ct-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.92rem;
}

.ct-article-panel .description th,
.ct-article-panel .description td,
.ct-article-body th,
.ct-article-body td {
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    text-align: left;
}

.ct-article-panel .description th,
.ct-article-body th {
    background: var(--ct-bg);
    font-weight: 700;
    color: var(--ct-navy);
}

.ct-knowledge-empty {
    background: var(--ct-white);
    border: 1px dashed #cbd5e1;
    border-radius: var(--ct-radius);
    padding: 48px 24px;
    text-align: center;
    color: var(--ct-muted);
}

.ct-knowledge-empty p {
    margin: 0;
    font-size: 1rem;
}

.ct-docs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ct-video-card .ui.embed {
    aspect-ratio: 16 / 9;
}

.ct-video-player .ui.embed {
    aspect-ratio: 16 / 9;
}

@media (max-width: 900px) {
    .ct-knowledge-layout {
        grid-template-columns: 1fr;
    }

    .ct-knowledge-sidebar {
        position: static;
    }

    .ct-knowledge-sidebar .megaMenu {
        max-height: 320px;
    }
}

@media (max-width: 768px) {
    .ct-knowledge {
        padding: 48px 0 56px;
    }

    .ct-knowledge-grid {
        grid-template-columns: 1fr;
    }
}
