.itsh-knowledge {
    overflow-x: hidden;
}

.itsh-knowledge .entry-header,
.itsh-knowledge .ast-archive-description {
    display: none;
}

.itsh-knowledge .site-content > .ast-container,
.itsh-knowledge #primary,
.itsh-knowledge #main,
.itsh-knowledge .site-main,
.itsh-knowledge .entry-content,
.itsh-knowledge .ast-article-single {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.itsh-hub {
    --navy: #0b1f3a;
    --cyan: #14b8d4;
    --ink: #122033;
    --muted: #5d6d82;
    --line: #e3ebf4;
    --bg: #f4f7fb;
    color: var(--ink);
    background: var(--bg);
    font-family: var(--itsh-font, Montserrat), "Segoe UI", sans-serif;
    width: 100%;
}

.itsh-hub * {
    box-sizing: border-box;
}

.itsh-wrap {
    width: min(var(--itsh-max, 1440px), calc(100% - 48px));
    margin: 0 auto;
}

.itsh-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.itsh-bar {
    background: var(--navy);
    padding: var(--itsh-bar-pad, 16px) 0;
}

.itsh-bar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.itsh-hub .itsh-bar h1 {
    margin: 0;
    color: var(--itsh-title, #ffffff) !important;
    font-size: var(--itsh-title-size, 30px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.itsh-search {
    width: min(var(--itsh-search, 360px), 100%);
    margin: 0;
}

.itsh-search input {
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 10px;
    padding: 0 14px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
}

.itsh-selects-wrap {
    background: var(--itsh-filter-bg, #fff);
    border-bottom: 1px solid var(--line);
}

.itsh-selects {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 12px 0;
}

.itsh-selects label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.itsh-selects select {
    width: 100%;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 12px;
    background: #fff;
    color: var(--navy);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.itsh-clear {
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 16px;
    background: #fff;
    color: var(--navy);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.itsh-search input:focus-visible,
.itsh-selects select:focus-visible,
.itsh-clear:focus-visible,
.itsh-card:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 2px;
}

.itsh-results {
    padding: 22px 0 64px;
}

.itsh-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--itsh-card-min, 340px), 1fr));
    gap: var(--itsh-gap, 22px);
}

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

.itsh-grid.itsh-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.itsh-grid.itsh-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.itsh-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(11, 31, 58, 0.06);
    border-radius: var(--itsh-radius, 18px);
    background: var(--card, #fff);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--itsh-shadow, 0 16px 40px rgba(11, 31, 58, 0.08));
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.itsh-hub.itsh-flat .itsh-card:hover {
    transform: none;
}

.itsh-card:hover {
    border-color: #b7e4f0;
    box-shadow: 0 22px 48px rgba(11, 31, 58, 0.12);
    transform: translateY(-4px);
}

.itsh-media {
    aspect-ratio: var(--itsh-ratio, 16 / 9);
    background: linear-gradient(135deg, #0b1f3a, #14506a);
}

.itsh-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.itsh-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px 18px;
}

.itsh-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.itsh-level { color: #0f6f86; }
.itsh-level-basic { color: #0c7a62; }
.itsh-level-advanced { color: #1d4e89; }
.itsh-level-expert { color: #6d2f5c; }
.itsh-threat-high,
.itsh-threat-critical { color: var(--itsh-threat, #c53b55); }

.itsh-card h2 {
    margin: 0;
    color: var(--navy);
    font-size: var(--itsh-card-title, 22px);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.itsh-card p {
    margin: 0;
    color: var(--itsh-excerpt, #3e5168);
    font-size: var(--itsh-body, 15px);
    line-height: 1.5;
}

.itsh-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.itsh-card-tags span {
    border-radius: 999px;
    padding: 4px 9px;
    background: #f4f8fb;
    color: #35506e;
    font-size: 12px;
    font-weight: 600;
}

.itsh-empty,
.itsh-error {
    grid-column: 1 / -1;
    padding: 48px 20px;
    border: 1px dashed var(--line);
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.itsh-empty h2,
.itsh-error h2 {
    margin: 0 0 8px;
    color: var(--navy);
}

.itsh-skel {
    height: 280px;
    border-radius: var(--itsh-radius, 18px);
    background: linear-gradient(90deg, #e8eef5 25%, #f7f9fc 37%, #e8eef5 63%);
    background-size: 400% 100%;
    animation: itsh-shimmer 1.2s ease infinite;
}

@keyframes itsh-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

@media (max-width: 1100px) {
    .itsh-grid.itsh-cols-3,
    .itsh-grid.itsh-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .itsh-wrap {
        width: min(var(--itsh-max, 1440px), calc(100% - 28px));
    }
    .itsh-bar-row,
    .itsh-selects {
        flex-direction: column;
        align-items: stretch;
    }
    .itsh-hub .itsh-bar h1 {
        white-space: normal;
    }
    .itsh-search {
        width: 100%;
    }
    .itsh-grid,
    .itsh-grid.itsh-cols-2,
    .itsh-grid.itsh-cols-3,
    .itsh-grid.itsh-cols-4 {
        grid-template-columns: 1fr;
    }
}

.itsh-postnav,
.itsh-related,
.itsh-postnav *,
.itsh-related * {
    box-sizing: border-box;
}

.itsh-postnav,
.itsh-related {
    font-family: var(--itsh-font, Montserrat), "Segoe UI", sans-serif;
}

.elementor-widget-wrap > .itsh-postnav,
.elementor-widget-wrap > .itsh-related,
.elementor-widget-container > .itsh-postnav,
.elementor-widget-container > .itsh-related {
    flex: 1 0 100%;
    width: 100%;
    max-width: 100%;
    align-self: stretch;
}

.itsh-postnav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    margin: 2px 0 18px;
}

.itsh-icon,
.itsh-related-head a,
.itsh-related-card {
    text-decoration: none;
}

.itsh-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 1px solid #e4edf5;
    border-radius: 999px;
    background: #fff;
    color: var(--navy, #0b1f3a) !important;
    box-shadow: 0 4px 12px rgba(11, 31, 58, 0.06);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.itsh-icon svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.itsh-icon-back {
    background: var(--navy, #0b1f3a);
    border-color: var(--navy, #0b1f3a);
    color: #fff !important;
}

.itsh-icon:hover,
.itsh-icon:focus-visible {
    background: var(--navy, #0b1f3a);
    border-color: var(--navy, #0b1f3a);
    color: #fff !important;
}

.itsh-icon-back:hover,
.itsh-icon-back:focus-visible {
    background: #143154;
    border-color: #143154;
}

.itsh-related-meta {
    color: var(--muted, #5d6d82);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.itsh-related {
    width: 100%;
    margin: 40px 0 0;
    padding-top: 22px;
    border-top: 1px solid #e7eef5;
}

.itsh-related + .itsh-postnav {
    margin-top: 18px;
    margin-bottom: 0;
}

.itsh-related-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.itsh-related-head h2 {
    margin: 0;
    color: var(--navy, #0b1f3a) !important;
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.itsh-related-head a {
    color: #0f7f98 !important;
    font-size: 13px;
    font-weight: 700;
}

.itsh-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.itsh-related-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(11, 31, 58, 0.06);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(11, 31, 58, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.itsh-related-card:hover {
    border-color: #c5e6f1;
    box-shadow: 0 18px 36px rgba(11, 31, 58, 0.1);
    transform: translateY(-3px);
}

.itsh-related-media {
    display: block;
    aspect-ratio: var(--itsh-ratio, 16 / 9);
    background: var(--navy, #0b1f3a) center / cover no-repeat;
}

.itsh-related-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 14px 14px;
}

.itsh-related-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.itsh-related-card strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--navy, #0b1f3a);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: -0.02em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

@media (max-width: 900px) {
    .itsh-postnav {
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    .itsh-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .itsh-card:hover,
    .itsh-related-card:hover { transform: none; }
    .itsh-card,
    .itsh-related-card,
    .itsh-icon { transition: none; }
    .itsh-skel { animation: none; }
}
