/*
Theme Name: Knowledge Hub New
Theme URI: https://uatacbfkm.cnkonline.com/
Author: Africa Knowledge Hub
Description: Dynamic custom theme for the Africa Knowledge Hub (powered by ACBF). Includes Knowledge Assets, Experts, Institutions and Communities post types, filterable directories, glass mega menus, animated homepage statistics, a full Customizer panel and a one-click content importer (Appearance > Knowledge Hub Setup).
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: knowledge-hub
Tags: custom-menu, custom-logo, featured-images, theme-options, translation-ready
*/

/* Main styles live in assets/css/app.css. Add small overrides below. */
.kh-content > * + * { margin-top: 1.1em; }
.kh-content { font-size: 1.05rem; line-height: 1.8; }
.kh-content h2, .kh-content h3 { margin-top: 1.8em; font-weight: 600; }
.kh-content ul { list-style: disc; padding-left: 1.4em; }
.kh-content a { color: var(--primary); text-decoration: underline; }
.kh-page-body { padding: 72px 0 96px; }
.kh-narrow { max-width: 820px; }
.kh-pagination { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 48px; }
.kh-pagination .page-numbers { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 0px; background: var(--card, #fff); padding: 0 14px; border: 1px solid var(--border);}
.kh-pagination .current { background: #e74310; color: var(--primary-foreground, #fff) !important; }
.kh-filter-form select, .kh-filter-form input[type="search"] { width: 100%; }
.kh-form-notice { padding: 16px 20px; border-radius: 14px; background: #e3eedc; margin-bottom: 24px; }
.mega-link-icon svg, .kh-icon { width: 18px; height: 18px; }

/* Legal / policy pages: comfortable reading width. */
.kh-legal .kh-content{max-width:780px}
.kh-legal .kh-content h2{margin-top:2em}
.kh-form-wrap{width:100%}
.footer-social{display:flex;gap:16px;margin-top:18px;flex-wrap:wrap}.footer-social a{opacity:.8}.footer-social a:hover{opacity:1;color:var(--leaf)}


/* TOIT CUSTOM CSS FROM HERE ONWARDS */
/* Border for the next and prev buttons */
.prev, .next{
    border: 1px solid var(--border);
}

/* Removing borders on dots */
.kh-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    box-shadow: none;
    min-width: auto;
    padding: 0 8px;
    cursor: default;
}

.kh-pagination .page-numbers{
    color: var(--foreground);
}

/* Hover for inactive numbers */
.kh-pagination .page-numbers:not(.current):not(.dots):hover {
    background: #f04a17;
    color: #fff;
    border-color: #f04a17;
}
