/* ================================================================
   Help Centre — help_centre.css
   ================================================================ */

:root {
    --hc-primary:      #6473df;
    --hc-primary-dark: #4455c7;
    --hc-accent:       #90dfcc;
    --hc-bg:           #f5f6fb;
    --hc-card-bg:      #ffffff;
    --hc-border:       #e8eaf0;
    --hc-text:         #2d3148;
    --hc-muted:        #7b7f9e;
    --hc-radius:       0.875rem;
    --hc-shadow:       0 2px 12px rgba(100,115,223,.10);
    --hc-shadow-hover: 0 8px 28px rgba(100,115,223,.18);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hc-hero {
    background: linear-gradient(135deg, rgba(88,103,221,.12) 0%, rgba(132,220,198,.12) 100%);
    border-bottom: 1px solid var(--hc-border);
    padding: 3rem 0 2.5rem;
    text-align: center;
}

.hc-hero-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--hc-primary), var(--hc-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
    color: white;
}

.hc-hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--hc-primary) 0%, #3a4fd4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.hc-hero p {
    color: var(--hc-muted);
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 auto 1.75rem;
}

/* ── Search ────────────────────────────────────────────────── */
.hc-search-wrap {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
}

.hc-search-wrap > i {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hc-muted);
    pointer-events: none;
}

.hc-search {
    width: 100%;
    padding: 0.85rem 1.1rem 0.85rem 2.75rem;
    border: 2px solid var(--hc-border);
    border-radius: 3rem;
    font-size: 1rem;
    background: white;
    color: var(--hc-text);
    box-shadow: var(--hc-shadow);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.hc-search:focus {
    border-color: var(--hc-primary);
    box-shadow: 0 0 0 4px rgba(100,115,223,.12);
}

.hc-search::placeholder { color: #b0b4cc; }

/* ── Main ──────────────────────────────────────────────────── */
.hc-main {
    background: var(--hc-bg);
    min-height: 60vh;
    padding: 2.5rem 0 4rem;
}

/* ── Breadcrumb ────────────────────────────────────────────── */
.hc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--hc-muted);
}

.hc-breadcrumb a {
    color: var(--hc-primary);
    text-decoration: none;
    font-weight: 500;
}

.hc-breadcrumb a:hover { text-decoration: underline; }

.hc-breadcrumb .sep { color: #c8cae0; font-size: 0.75rem; }

.hc-breadcrumb .current { color: var(--hc-text); font-weight: 600; }

/* ── Article actions (back + copy) ─────────────────────────── */
.hc-article-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hc-back-btn,
.hc-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1.5px solid var(--hc-border);
    border-radius: 2rem;
    padding: 0.45rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--hc-muted);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.hc-back-btn:hover,
.hc-copy-btn:hover {
    border-color: var(--hc-primary);
    color: var(--hc-primary);
    text-decoration: none;
}

.hc-copy-btn.copied { border-color: #28a745; color: #28a745; }

/* ── Three-column layout ───────────────────────────────────── */
.hc-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    background: var(--hc-card-bg);
    border: 1.5px solid var(--hc-border);
    border-radius: var(--hc-radius);
    overflow: hidden;
    min-height: 520px;
}

.hc-col {
    border-right: 1.5px solid var(--hc-border);
    display: flex;
    flex-direction: column;
}

.hc-col:last-child { border-right: none; }

.hc-col-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hc-muted);
    padding: 1rem 1.1rem 0.5rem;
    margin: 0;
    border-bottom: 1px solid var(--hc-border);
}

.hc-nav-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.4rem 0;
}

.hc-nav-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1.1rem;
    color: var(--hc-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    border-left: 3px solid transparent;
    cursor: pointer;
}

.hc-nav-item:hover {
    background: var(--hc-bg);
    color: var(--hc-primary);
    text-decoration: none;
}

.hc-nav-item.active {
    background: rgba(100,115,223,.08);
    color: var(--hc-primary);
    border-left-color: var(--hc-primary);
    font-weight: 600;
}

.hc-nav-item > i:first-child {
    font-size: 0.9rem;
    color: var(--hc-primary);
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.hc-nav-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.hc-nav-item-body small {
    font-size: 0.75rem;
    color: var(--hc-muted);
    font-weight: 400;
}

.hc-nav-item > span { flex: 1; line-height: 1.3; }

.hc-nav-chevron {
    font-size: 0.65rem;
    color: #c8cae0;
    flex-shrink: 0;
    transition: color 0.15s;
}

.hc-nav-item:hover .hc-nav-chevron,
.hc-nav-item.active .hc-nav-chevron { color: var(--hc-primary); }

.hc-nav-article { border-bottom: 1px solid var(--hc-border); }
.hc-nav-article:last-child { border-bottom: none; }

.hc-col-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #c8cae0;
    gap: 0.5rem;
    padding: 2rem;
    text-align: center;
}

.hc-col-empty i { font-size: 1.5rem; }

.hc-col-empty p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--hc-muted);
}

/* ── Article view ──────────────────────────────────────────── */
.hc-article-wrap { max-width: 100%; }

.hc-article-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--hc-border);
}

.hc-article-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--hc-primary), var(--hc-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    flex-shrink: 0;
}

.hc-article-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--hc-text);
    margin: 0;
}

.hc-content-block { margin-bottom: 2rem; }

.hc-article-content {
    color: #3d4060;
    font-size: 1rem;
    line-height: 1.75;
}

.hc-article-content h2,
.hc-article-content h3 { color: var(--hc-text); font-weight: 700; margin-top: 1.5rem; }

.hc-article-content a { color: var(--hc-primary); }

.hc-article-content ul,
.hc-article-content ol { padding-left: 1.5rem; }

.hc-article-content code {
    background: #f0f1f9;
    padding: 0.15em 0.4em;
    border-radius: 0.3rem;
    font-size: 0.9em;
    color: var(--hc-primary-dark);
}

.hc-section-media {
    margin-top: 1rem;
}

.hc-section-media img,
.hc-section-media video { max-width: 640px; width: 100%; display: block; margin: 0 auto; border-radius: 0.75rem; }

/* ── Search results ────────────────────────────────────────── */
.hc-section-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--hc-primary);
    margin-bottom: 1rem;
}

.hc-search-header { margin-bottom: 1.25rem; }

.hc-article-list { display: flex; flex-direction: column; gap: 0.75rem; }

.hc-article-item {
    background: var(--hc-card-bg);
    border: 1.5px solid var(--hc-border);
    border-radius: var(--hc-radius);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.hc-article-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--hc-shadow-hover);
    border-color: var(--hc-primary);
    color: inherit;
    text-decoration: none;
}

.hc-tile-icon {
    width: 38px;
    height: 38px;
    border-radius: 0.5rem;
    background: rgba(100,115,223,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--hc-primary);
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.hc-article-item:hover .hc-tile-icon {
    background: linear-gradient(135deg, var(--hc-primary), var(--hc-accent));
    color: white;
}

.hc-tile-body { flex: 1; min-width: 0; }
.hc-tile-title { font-size: 0.97rem; font-weight: 700; color: var(--hc-text); margin-bottom: 0.2rem; }
.hc-tile-meta { font-size: 0.8rem; color: var(--hc-muted); }

.hc-tile-chevron { color: #c8cae0; font-size: 0.8rem; flex-shrink: 0; }
.hc-article-item:hover .hc-tile-chevron { color: var(--hc-primary); }

/* ── Empty / error states ──────────────────────────────────── */
.hc-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--hc-muted);
}

.hc-empty i { font-size: 2.5rem; margin-bottom: 1rem; display: block; color: #c8cae0; }

/* ── AOS ───────────────────────────────────────────────────── */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hc-columns {
        grid-template-columns: 1fr;
    }
    .hc-col {
        border-right: none;
        border-bottom: 1.5px solid var(--hc-border);
        min-height: auto;
    }
    .hc-col:last-child { border-bottom: none; }
    .hc-article-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .hc-article-header h2 { font-size: 1.3rem; }
    .hc-hero h1 { font-size: 1.75rem; }
}

/* ================================================================
   Guide layout
   ================================================================ */

.guide-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    background: var(--hc-card-bg);
    border: 1.5px solid var(--hc-border);
    border-radius: var(--hc-radius);
    overflow: hidden;
    min-height: 600px;
}

/* Sidebar */
.guide-sidebar {
    border-right: 1.5px solid var(--hc-border);
    display: flex;
    flex-direction: column;
}

.guide-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.4rem 0;
}

.guide-nav-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.1rem;
    color: var(--hc-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    border-left: 3px solid transparent;
}

.guide-nav-item:hover {
    background: var(--hc-bg);
    color: var(--hc-primary);
    text-decoration: none;
}

.guide-nav-item.active {
    background: rgba(100,115,223,.08);
    color: var(--hc-primary);
    border-left-color: var(--hc-primary);
    font-weight: 600;
}

.guide-nav-item > i:first-child {
    font-size: 0.9rem;
    color: var(--hc-primary);
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.guide-nav-item > span { flex: 1; line-height: 1.35; }

.guide-nav-chevron {
    font-size: 0.65rem;
    color: var(--hc-primary);
    flex-shrink: 0;
}

.guide-sidebar-footer {
    padding: 1rem 1.1rem;
    border-top: 1px solid var(--hc-border);
}

/* Content area */
.guide-content {
    padding: 2rem 2.5rem;
    overflow-y: auto;
}

.guide-article { margin-bottom: 1.5rem; }

.guide-article-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--hc-border);
}

.guide-article-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--hc-text);
    margin: 0;
}

.guide-article-divider {
    border: none;
    border-top: 2px dashed var(--hc-border);
    margin: 2rem 0;
}

/* Prev / Next pagination */
.guide-pagination {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1.5px solid var(--hc-border);
}

.guide-page-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border: 1.5px solid var(--hc-border);
    border-radius: var(--hc-radius);
    text-decoration: none;
    color: var(--hc-text);
    transition: all 0.2s;
    max-width: 48%;
}

.guide-page-btn:hover {
    border-color: var(--hc-primary);
    color: var(--hc-primary);
    text-decoration: none;
    box-shadow: var(--hc-shadow);
}

.guide-page-btn > i { color: var(--hc-primary); flex-shrink: 0; }

.guide-page-btn div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.guide-page-btn small {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--hc-muted);
    font-weight: 700;
}

.guide-page-btn span {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

.guide-page-next { text-align: right; }
.guide-page-next div { align-items: flex-end; }

/* Responsive */
@media (max-width: 768px) {
    .guide-layout {
        grid-template-columns: 1fr;
    }
    .guide-sidebar {
        border-right: none;
        border-bottom: 1.5px solid var(--hc-border);
    }
    .guide-content {
        padding: 1.5rem;
    }
    .guide-pagination {
        flex-direction: column;
    }
    .guide-page-btn { max-width: 100%; }
}