/* Knowledge-base pages (solutions, case studies, insights) */

.kb-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 5.5rem 1.25rem 3.5rem;
}

.kb-crumb {
    margin: 0 0 1.25rem;
    font-size: 0.85rem;
    color: #5c6b7a;
}

.kb-crumb a {
    color: #1d9e75;
    text-decoration: none;
    font-weight: 600;
}

.kb-crumb a:hover {
    text-decoration: underline;
}

.kb-wrap h1 {
    margin: 0 0 1rem;
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    font-weight: 800;
    line-height: 1.2;
    color: #112337;
}

.kb-lead {
    margin: 0 0 1.75rem;
    font-size: 1.08rem;
    line-height: 1.7;
    color: #2a3440;
}

.kb-block {
    margin: 0 0 1.75rem;
}

.kb-block h2 {
    margin: 0 0 0.65rem;
    font-size: 1.2rem;
    font-weight: 760;
    color: #112337;
}

.kb-block p,
.kb-block li {
    line-height: 1.65;
    color: #3d4a57;
}

.kb-block ul {
    margin: 0.35rem 0 0;
    padding-left: 1.2rem;
}

.kb-faq details {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    padding: 0.85rem 1rem;
    margin: 0 0 0.65rem;
}

.kb-faq summary {
    cursor: pointer;
    font-weight: 650;
    color: #112337;
}

.kb-faq details p {
    margin: 0.65rem 0 0;
}

.kb-links {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.kb-links a {
    display: block;
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    background: #eef2f6;
    color: #112337;
    text-decoration: none;
    font-weight: 600;
}

.kb-links a:hover {
    background: #e2ebe7;
    color: #178a66;
}

.kb-cta {
    margin-top: 2rem;
    padding: 1.35rem 1.25rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #112337 0%, #1e3a5f 100%);
    color: #fff;
}

.kb-cta h2 {
    margin: 0 0 0.5rem;
    color: #fff;
    font-size: 1.2rem;
}

.kb-cta p {
    margin: 0 0 1rem;
    opacity: 0.92;
}

.kb-cta a {
    color: #fff;
    font-weight: 700;
}

.kb-index-grid {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.kb-index-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.1rem 1rem;
}

.kb-index-card h2 {
    margin: 0 0 0.45rem;
    font-size: 1.02rem;
}

.kb-index-card h2 a {
    color: #112337;
    text-decoration: none;
}

.kb-index-card h2 a:hover {
    color: #1d9e75;
}

.kb-index-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #5c6b7a;
    line-height: 1.5;
}

.software-hub-products,
.software-hub-links {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
}

.software-hub-products li,
.software-hub-links li {
    opacity: 0;
    transform: translateY(12px);
    animation: emhk-hub-card-in 0.55s ease forwards;
}

.software-hub-products li:nth-child(1),
.software-hub-links li:nth-child(1) { animation-delay: 0.02s; }
.software-hub-products li:nth-child(2),
.software-hub-links li:nth-child(2) { animation-delay: 0.06s; }
.software-hub-products li:nth-child(3),
.software-hub-links li:nth-child(3) { animation-delay: 0.1s; }
.software-hub-products li:nth-child(4),
.software-hub-links li:nth-child(4) { animation-delay: 0.14s; }
.software-hub-products li:nth-child(5),
.software-hub-links li:nth-child(5) { animation-delay: 0.18s; }
.software-hub-products li:nth-child(6),
.software-hub-links li:nth-child(6) { animation-delay: 0.22s; }
.software-hub-products li:nth-child(7),
.software-hub-links li:nth-child(7) { animation-delay: 0.26s; }
.software-hub-products li:nth-child(8),
.software-hub-links li:nth-child(8) { animation-delay: 0.3s; }
.software-hub-products li:nth-child(9),
.software-hub-links li:nth-child(9) { animation-delay: 0.34s; }
.software-hub-products li:nth-child(10),
.software-hub-links li:nth-child(10) { animation-delay: 0.38s; }
.software-hub-products li:nth-child(11),
.software-hub-links li:nth-child(11) { animation-delay: 0.42s; }
.software-hub-products li:nth-child(12),
.software-hub-links li:nth-child(12) { animation-delay: 0.46s; }
.software-hub-products li:nth-child(n+13),
.software-hub-links li:nth-child(n+13) { animation-delay: 0.5s; }

@keyframes emhk-hub-card-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.software-hub-products a,
.software-hub-links a,
.software-hub-product {
    display: block;
    height: 100%;
    padding: 1rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.software-hub-product {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.software-hub-product__media {
    display: block;
    aspect-ratio: 4 / 3;
    background: linear-gradient(145deg, #eef2f6 0%, #e2e8f0 100%);
    overflow: hidden;
}

.software-hub-product__media picture,
.software-hub-product__media img,
.software-hub-product__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.software-hub-product:hover .software-hub-product__media img,
.software-hub-product:hover .software-hub-product__img {
    transform: scale(1.04);
}

.software-hub-product__body {
    display: block;
    padding: 0.95rem 1rem 1.05rem;
}

.software-hub-products a:hover,
.software-hub-links a:hover,
.software-hub-product:hover {
    border-color: #1d9e75;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(17, 35, 55, 0.08);
}

.software-hub-products a:active,
.software-hub-links a:active,
.software-hub-product:active {
    transform: translateY(-1px);
}

.software-hub-products strong,
.software-hub-links strong,
.software-hub-product__body strong {
    display: block;
    margin-bottom: 0.35rem;
    color: #112337;
}

.software-hub-products span,
.software-hub-links span,
.software-hub-product__body > span {
    font-size: 0.88rem;
    color: #5c6b7a;
    line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
    .software-hub-products li,
    .software-hub-links li {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .software-hub-products a,
    .software-hub-links a,
    .software-hub-product {
        transition: none;
    }

    .software-hub-products a:hover,
    .software-hub-links a:hover,
    .software-hub-product:hover {
        transform: none;
        box-shadow: none;
    }

    .software-hub-product__media img,
    .software-hub-product__img {
        transition: none;
    }

    .software-hub-product:hover .software-hub-product__media img,
    .software-hub-product:hover .software-hub-product__img {
        transform: none;
    }
}

.kb-shot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.kb-shot {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f7f9fb;
    aspect-ratio: 3 / 4;
}

.kb-shot picture,
.kb-shot img,
.kb-shot .kb-shot-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kb-shot:hover {
    border-color: #1d9e75;
}

.kb-product-cards {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.85rem;
}

.kb-product-cards a {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.kb-product-cards a:hover {
    border-color: #1d9e75;
}

.kb-product-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 96px;
    border-radius: 8px;
    overflow: hidden;
    background: #f7f9fb;
}

.kb-product-thumb picture,
.kb-product-thumb img,
.kb-product-thumb .kb-product-thumb-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kb-product-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.kb-product-meta strong {
    color: #112337;
    font-size: 0.95rem;
    line-height: 1.35;
}

.kb-product-meta span {
    color: #1d9e75;
    font-size: 0.82rem;
    font-weight: 650;
}
