/* Pandoara Help Center — layout inspired by common Zendesk help-center pattern */
:root {
    --brand: #09664D;
    --brand-dark: #074a38;
    --brand-text: #ffffff;
    --text: #333333;
    --muted: #6b6b6b;
    --border: #e5e5e5;
    --bg: #ffffff;
    --bg-alt: #f7f7f7;
    --link: #09664D;
    --radius: 6px;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.header {
    display: flex;
    align-items: center;
    padding: 18px 40px;
    border-bottom: 1px solid var(--border);
    background: #fff;
    gap: 16px;
}
.header .logo { display: flex; align-items: center; gap: 16px; }
.header .logo .brand-mark {
    display: inline-block;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.5px;
    color: #111;
}
.header .header-separator {
    width: 1px; height: 24px; background: var(--border);
}
.header .header-title {
    font-size: 15px; font-weight: 600; color: #222;
}
.header nav.user-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
}
.header .cart {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: #333;
    font-size: 13px;
}

/* Hero */
.hero {
    background: var(--brand);
    color: var(--brand-text);
    padding: 72px 20px 88px;
    text-align: center;
}
.hero .hero-inner { max-width: 720px; margin: 0 auto; }
.hero .text-hero {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 28px;
    letter-spacing: -0.5px;
}
.search-form { position: relative; }
.search-form input[type=search] {
    width: 100%;
    padding: 16px 22px;
    font-size: 16px;
    border: 0;
    border-radius: 40px;
    outline: none;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

/* Container */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span { margin: 0 6px; color: #bbb; }

/* Categories grid */
.section-heading {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--muted);
    margin-bottom: 20px;
}
.categories .blocks-list {
    list-style: none;
    padding: 0;
    margin: 0 0 60px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.blocks-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: box-shadow .15s ease, border-color .15s ease;
    background: #fff;
}
.blocks-item:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    border-color: #cbd5cd;
}
.blocks-item a { display: block; color: inherit; }
.blocks-item a:hover { text-decoration: none; }
.blocks-item .icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(9,102,77,0.08);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 18px;
}
.blocks-item h4 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #222;
    font-weight: 600;
}
.blocks-item .desc {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

/* Popular */
.popular h1 {
    font-size: 22px;
    margin-bottom: 22px;
    font-weight: 700;
}
.popular ul.articleList {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 40px;
}
.popular ul.articleList li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.popular ul.articleList li:before {
    content: "›";
    margin-right: 10px;
    color: var(--brand);
    font-weight: bold;
}

/* Section (category / section page) */
.hc-two-col {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    margin-top: 20px;
}
.hc-sidebar {
    border-right: 1px solid var(--border);
    padding-right: 24px;
}
.hc-sidebar h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--muted);
    margin: 0 0 12px;
}
.hc-sidebar ul { list-style: none; padding: 0; margin: 0 0 24px; }
.hc-sidebar li a {
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
}
.hc-sidebar li a:hover { background: var(--bg-alt); text-decoration: none; }
.hc-sidebar li a.active { background: var(--bg-alt); font-weight: 600; color: var(--brand); }

.hc-main h1 {
    font-size: 28px;
    margin: 0 0 8px;
    font-weight: 700;
}
.hc-main .lead { color: var(--muted); margin-bottom: 28px; }

.section-block { margin-bottom: 40px; }
.section-block h2 {
    font-size: 18px;
    margin: 0 0 12px;
    font-weight: 600;
}
.section-block ul.article-list {
    list-style: none; padding: 0; margin: 0;
    border-top: 1px solid var(--border);
}
.section-block ul.article-list li {
    border-bottom: 1px solid var(--border);
}
.section-block ul.article-list li a {
    display: flex;
    align-items: center;
    padding: 14px 0;
    color: #333;
}
.section-block ul.article-list li a:before {
    content: "›";
    color: var(--brand);
    font-weight: bold;
    margin-right: 12px;
}
.section-block ul.article-list li a:hover { color: var(--brand); }

/* Article page */
.article-body {
    max-width: 780px;
    font-size: 15px;
    line-height: 1.7;
}
.article-body h1 { font-size: 28px; margin: 0 0 20px; }
.article-body h2 { font-size: 20px; margin: 28px 0 12px; }
.article-body img { max-width: 100%; height: auto; }
.article-body a { color: var(--brand); }
.article-body table { border-collapse: collapse; margin: 20px 0; }
.article-body table td, .article-body table th {
    border: 1px solid var(--border);
    padding: 8px 12px;
}
.article-body ul, .article-body ol { padding-left: 22px; }

.related-articles {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.related-articles h3 { font-size: 16px; margin-bottom: 12px; }
.related-articles ul { list-style: none; padding: 0; margin: 0; }
.related-articles li { padding: 6px 0; }
.related-articles li:before { content: "›"; color: var(--brand); margin-right: 8px; }

/* Search */
.search-summary { color: var(--muted); margin-bottom: 20px; }
.search-results { list-style: none; padding: 0; margin: 0; }
.search-results li {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.search-results h4 { margin: 0 0 6px; font-size: 16px; }
.search-results .crumb { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.search-results .snippet { color: #555; font-size: 14px; }

/* Contact / footer */
.need-help {
    text-align: center;
    padding: 60px 0 20px;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}
.need-help h3 { font-size: 20px; margin-bottom: 20px; }
.need-help .button {
    display: inline-block;
    padding: 12px 28px;
    background: var(--brand);
    color: #fff;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.need-help .button:hover { background: var(--brand-dark); }

.footer {
    background: #f5f5f5;
    padding: 32px 20px;
    color: #666;
    font-size: 13px;
    text-align: center;
    margin-top: 40px;
}
.footer .brand-mark { font-weight: 700; color: #333; font-size: 16px; display: block; margin-bottom: 8px; }

/* Responsive */
@media (max-width: 800px) {
    .header { padding: 14px 20px; }
    .hero { padding: 44px 16px 56px; }
    .hero .text-hero { font-size: 26px; }
    .hc-two-col { grid-template-columns: 1fr; }
    .hc-sidebar { border-right: 0; padding-right: 0; }
    .popular ul.articleList { grid-template-columns: 1fr; }
}
