/*
Theme Name: JUJU Host Knowledgebase
Theme URI: https://jujuhost.com/
Author: JUJU Host
Description: A lightweight, responsive knowledgebase theme for hosting guides, tutorials, reviews, and affiliate recommendations.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
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: jujuhost-kb
Tags: blog, education, news, custom-logo, custom-menu, featured-images, full-width-template
*/
:root {
  --jh-ink: #172033;
  --jh-muted: #667085;
  --jh-blue: #2357d9;
  --jh-blue-dark: #173eaa;
  --jh-teal: #17a6a1;
  --jh-bg: #f6f8fc;
  --jh-card: #ffffff;
  --jh-border: #e5eaf3;
  --jh-radius: 18px;
  --jh-shadow: 0 12px 35px rgba(25, 42, 79, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--jh-ink); background: #fff;
  font: 16px/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--jh-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--jh-blue-dark); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.site-header { position: relative; z-index: 5; background: #fff; border-bottom: 1px solid var(--jh-border); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--jh-ink); text-decoration: none; font-size: 1.25rem; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: white; background: linear-gradient(135deg, var(--jh-blue), var(--jh-teal)); font-size: 1rem; }
.custom-logo { max-height: 48px; width: auto; }
.header-right { display: flex; align-items: center; gap: 22px; }
.primary-nav > ul { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.primary-nav li { position: relative; list-style: none; }
.primary-nav li > a { display: inline-flex; align-items: center; min-height: 42px; }
.primary-nav .sub-menu { display: none; position: absolute; top: calc(100% - 1px); left: 0; z-index: 30; min-width: 240px; max-width: min(340px, 90vw); padding: 8px; margin: 0; flex-direction: column; align-items: stretch; gap: 2px; background: #fff; border: 1px solid var(--jh-border); border-radius: 12px; box-shadow: 0 16px 38px rgba(25,42,79,.14); }
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu,
.primary-nav li.submenu-open > .sub-menu { display: flex; }
.primary-nav .sub-menu li { width: 100%; }
.primary-nav .sub-menu a { display: flex; width: 100%; min-height: 0; padding: 9px 12px; border-radius: 8px; line-height: 1.4; white-space: normal; }
.primary-nav .sub-menu a:hover,
.primary-nav .sub-menu a:focus-visible { background: #f1f5ff; }
.primary-nav .submenu-toggle { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: 2px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #344054; cursor: pointer; }
.primary-nav .submenu-toggle::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.primary-nav li.submenu-open > .submenu-toggle::before,
.primary-nav li:focus-within > .submenu-toggle::before { transform: translateY(2px) rotate(225deg); }
.primary-nav .submenu-toggle:focus-visible,
.menu-toggle:focus-visible { outline: 3px solid #9db8ff; outline-offset: 2px; }
.primary-nav a { color: #344054; text-decoration: none; font-size: .94rem; font-weight: 650; }
.primary-nav a:hover { color: var(--jh-blue); }
.menu-toggle { display: none; border: 1px solid var(--jh-border); border-radius: 10px; background: white; padding: 8px 12px; color: var(--jh-ink); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 11px; background: var(--jh-blue); color: white; border: 1px solid var(--jh-blue); text-decoration: none; font-weight: 750; transition: .2s ease; }
.button:hover { color: white; background: var(--jh-blue-dark); transform: translateY(-1px); }
.button-outline { color: var(--jh-blue); background: white; }
.button-outline:hover { color: white; }
.hero { overflow: hidden; position: relative; padding: 82px 0 70px; background: radial-gradient(circle at 85% 20%, rgba(23,166,161,.13), transparent 28%), radial-gradient(circle at 10% 10%, rgba(35,87,217,.12), transparent 30%), linear-gradient(180deg,#fbfcff 0%,#f3f7ff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 6px 11px; border: 1px solid #d9e5ff; border-radius: 999px; color: var(--jh-blue-dark); background: #fff; font-size: .82rem; font-weight: 750; }
.hero h1 { max-width: 720px; margin: 18px 0 18px; font-size: clamp(2.5rem, 5vw, 4.4rem); line-height: 1.04; letter-spacing: -.06em; }
.hero h1 span { color: var(--jh-blue); }
.hero-copy { max-width: 620px; color: #58657b; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.hero-note { margin-top: 17px; color: var(--jh-muted); font-size: .88rem; }
.hero-panel { padding: 24px; background: rgba(255,255,255,.88); border: 1px solid #e0e8f6; border-radius: 24px; box-shadow: var(--jh-shadow); }
.hero-panel h2 { margin: 0 0 16px; font-size: 1.05rem; }
.quick-links { display: grid; gap: 10px; }
.quick-link { display: flex; align-items: center; gap: 13px; padding: 13px; color: var(--jh-ink); text-decoration: none; border: 1px solid var(--jh-border); border-radius: 13px; background: white; }
.quick-link:hover { border-color: #b9cbff; transform: translateY(-1px); }
.quick-icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; color: var(--jh-blue); background: #edf2ff; font-weight: 800; }
.quick-link strong { display: block; font-size: .95rem; }
.quick-link small { display: block; color: var(--jh-muted); font-size: .82rem; }
.search-wrap { max-width: 690px; margin-top: 26px; }
.search-form { display: flex; gap: 8px; padding: 7px; background: white; border: 1px solid #dfe6f2; border-radius: 14px; box-shadow: 0 8px 22px rgba(25,42,79,.05); }
.search-form input[type="search"] { min-width: 0; flex: 1; padding: 10px 12px; border: 0; outline: 0; background: transparent; }
.search-form input[type="submit"] { cursor: pointer; padding: 10px 16px; border: 0; border-radius: 9px; color: white; background: var(--jh-blue); font-weight: 750; }
.section { padding: 68px 0; }
.section-soft { background: var(--jh-bg); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.section-head h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1.15; letter-spacing: -.045em; }
.section-head p { max-width: 560px; margin: 8px 0 0; color: var(--jh-muted); }
.text-link { font-weight: 750; text-decoration: none; white-space: nowrap; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.category-card, .article-card { display: block; padding: 22px; border: 1px solid var(--jh-border); border-radius: var(--jh-radius); background: var(--jh-card); color: var(--jh-ink); text-decoration: none; transition: .2s ease; }
.category-card:hover, .article-card:hover { transform: translateY(-3px); border-color: #c4d3fb; box-shadow: var(--jh-shadow); }
.category-card .category-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 17px; border-radius: 14px; color: var(--jh-blue); background: #edf2ff; font-size: 1.15rem; font-weight: 850; }
.category-card h3, .article-card h3 { margin: 0 0 7px; font-size: 1.12rem; line-height: 1.3; letter-spacing: -.02em; }
.category-card p, .article-card p { margin: 0; color: var(--jh-muted); font-size: .94rem; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-card { padding: 0; overflow: hidden; }
.article-thumb { aspect-ratio: 16/9; display: grid; place-items: center; background: linear-gradient(135deg,#e9efff,#e6faf8); color: var(--jh-blue); font-size: 2rem; font-weight: 900; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 21px; }
.article-meta { margin-bottom: 10px; color: var(--jh-muted); font-size: .82rem; }
.article-card h3 { margin-bottom: 9px; }
.empty-note { padding: 24px; border: 1px dashed #cbd5e1; border-radius: 14px; color: var(--jh-muted); background: #fff; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px; border-radius: 22px; color: white; background: linear-gradient(120deg,#183d9e,#2357d9 60%,#159d9a); }
.cta-band h2 { margin: 0 0 7px; font-size: clamp(1.5rem, 3vw, 2.15rem); letter-spacing: -.04em; }
.cta-band p { margin: 0; color: rgba(255,255,255,.84); }
.cta-band .button { flex-shrink: 0; color: var(--jh-blue-dark); background: white; border-color: white; }
.page-hero { padding: 54px 0 34px; background: var(--jh-bg); border-bottom: 1px solid var(--jh-border); }
.page-hero h1 { margin: 0 0 10px; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.05em; line-height: 1.12; }
.page-hero p { margin: 0; color: var(--jh-muted); max-width: 760px; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 42px; padding: 48px 0 72px; }
.content-main { min-width: 0; }
.entry-content { font-size: 1.04rem; }
.entry-content h2, .entry-content h3 { margin-top: 1.7em; line-height: 1.25; letter-spacing: -.025em; }
.entry-content img { border-radius: 12px; }
.entry-content blockquote { margin: 24px 0; padding: 10px 22px; border-left: 4px solid var(--jh-blue); color: #475467; background: var(--jh-bg); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px; border: 1px solid var(--jh-border); text-align: left; }
.sidebar-box { margin-bottom: 18px; padding: 20px; border: 1px solid var(--jh-border); border-radius: 15px; background: #fff; }
.sidebar-box h2 { margin: 0 0 12px; font-size: 1.05rem; }
.sidebar-box ul { margin: 0; padding-left: 18px; }
.sidebar-box li { margin: 8px 0; }
.post-list { display: grid; gap: 16px; }
.post-list .article-card { display: grid; grid-template-columns: 190px 1fr; }
.post-list .article-thumb { height: 100%; min-height: 150px; aspect-ratio: auto; }
.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 30px; }
.pagination .page-numbers { padding: 8px 12px; border: 1px solid var(--jh-border); border-radius: 8px; text-decoration: none; }
.pagination .current { color: #fff; background: var(--jh-blue); border-color: var(--jh-blue); }
.site-footer { padding: 44px 0 24px; color: #d5dced; background: #101a30; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 38px; }
.site-footer .brand { color: #fff; }
.site-footer p { color: #aebbd0; }
.site-footer h2 { margin: 0 0 12px; color: white; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: #d5dced; text-decoration: none; }
.site-footer a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #93a2bb; font-size: .86rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 60px 0; }
  .category-grid, .article-grid { grid-template-columns: repeat(2, 1fr); }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .sidebar-box { margin: 0; }
  .primary-nav { display: none; position: absolute; top: 81px; left: 0; right: 0; max-height: calc(100vh - 82px); overflow-y: auto; padding: 18px 20px; background: white; border-bottom: 1px solid var(--jh-border); box-shadow: 0 14px 24px rgba(25,42,79,.08); }
  .primary-nav.is-open { display: block; }
  .primary-nav > ul { align-items: stretch; flex-direction: column; gap: 4px; }
  .primary-nav > ul > li { display: flex; flex-wrap: wrap; align-items: center; }
  .primary-nav > ul > li > a { flex: 1; }
  .primary-nav .submenu-toggle { flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid var(--jh-border); }
  .primary-nav .sub-menu { display: none; position: static; flex: 0 0 100%; width: 100%; max-width: none; min-width: 0; margin: 2px 0 8px; padding: 6px 8px 6px 14px; border: 0; border-left: 2px solid #dbe5ff; border-radius: 0; box-shadow: none; background: #f8faff; }
  .primary-nav li:hover > .sub-menu,
  .primary-nav li:focus-within > .sub-menu { display: none; }
  .primary-nav li.submenu-open > .sub-menu { display: flex; }
  .primary-nav .sub-menu li { display: block; }
  .menu-toggle { display: inline-block; }
  .header-right > .button { display: none; }
}
@media (max-width: 600px) {
  .container { width: min(100% - 28px, 1160px); }
  .header-inner { min-height: 72px; }
  .primary-nav { top: 71px; }
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 2.55rem; }
  .category-grid, .article-grid, .sidebar, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .cta-band { align-items: start; flex-direction: column; padding: 25px; }
  .post-list .article-card { grid-template-columns: 1fr; }
  .post-list .article-thumb { min-height: 0; aspect-ratio: 16/9; }
  .footer-bottom { flex-direction: column; }
}
