/* ── Help Center — shared ───────────────────────────────────────────────── */

.hc-hero {
    background: linear-gradient(135deg, #1552EF 0%, #0d3ba8 100%);
    color: #fff;
    padding: 48px 0 36px;
}
.hc-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.hc-hero p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.hc-wrapper {
    background: #c5c2b8;
    min-height: 100vh;
    padding-bottom: 60px;
}

.hc-section {
    padding: 40px 0 0;
}

.hc-back-link {
    color: #1552EF;
    font-size: 0.9rem;
    text-decoration: none;
}
.hc-back-link:hover { color: #0d3ba8; text-decoration: underline; }

/* ── Card layout ────────────────────────────────────────────────────────── */

.hc-card-layout .hc-section-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8ecf0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hc-card-layout .btn-view-more {
    font-size: 0.8rem;
    color: #1552EF;
    text-decoration: none;
    font-weight: 500;
}
.hc-card-layout .btn-view-more:hover { text-decoration: underline; }

.hc-article-card {
    display: block;
    background: #fff;
    border: 1px solid #e4e8ef;
    border-radius: 8px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    margin-bottom: 20px;
    transition: box-shadow 0.15s, transform 0.15s;
}
.hc-article-card:hover {
    box-shadow: 0 4px 16px rgba(21,82,239,0.12);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}
.hc-article-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.hc-article-card .hc-card-body {
    padding: 14px 16px 16px;
}
.hc-article-card h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}
.hc-article-card .hc-meta {
    font-size: 0.78rem;
    color: #888;
    display: flex;
    gap: 12px;
}

/* ── List layout hero search ─────────────────────────────────────────────── */

.hc-hero-list { background: #1552EF; }

.hc-search-wrap {
    position: relative;
    max-width: 480px;
    margin: 20px auto 0;
}
.hc-search-input {
    width: 100%;
    padding: 10px 44px 10px 18px;
    border: none;
    border-radius: 30px;
    font-size: 0.95rem;
    outline: none;
    background: #fff;
    color: #222;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.hc-search-input::placeholder { color: #aaa; }
.hc-search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 1.15rem;
    pointer-events: none;
}

/* ── Category filter bar ─────────────────────────────────────────────────── */

.hc-filter-bar {
    display: flex;
    justify-content: flex-end;
    padding: 20px 0 4px;
}
.hc-filter-select {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 6px 32px 6px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23555' d='M5 7L0 2h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-color: #fff;
}
.hc-filter-select:focus { outline: none; border-color: #1552EF; }

/* ── List layout ─────────────────────────────────────────────────────────── */

.hc-list-layout .hc-list-section {
    padding: 28px 0 0;
}
.hc-list-category-pill {
    display: inline-block;
    background: #1552EF;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 30px;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}
.hc-list-layout .hc-list-articles {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
}
.hc-list-layout .hc-list-articles li {
    padding: 5px 0;
    border-bottom: 1px solid #dedad4;
}
.hc-list-layout .hc-list-articles li:last-child { border-bottom: none; }
.hc-list-layout .hc-list-articles a {
    color: #1552EF;
    font-size: 0.92rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hc-list-layout .hc-list-articles a:hover { text-decoration: underline; }
.hc-doc-icon {
    font-size: 0.9rem;
    opacity: 0.75;
    flex-shrink: 0;
}

/* ── Article detail ─────────────────────────────────────────────────────── */

.hc-article-wrapper {
    max-width: 820px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.hc-article-hero { margin-bottom: 28px; }
.hc-article-hero img {
    width: 100%;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 20px;
}

.hc-article-category a {
    display: inline-block;
    background: #e8f0fe;
    color: #0d6efd;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    padding: 2px 10px;
    text-decoration: none;
    margin-bottom: 12px;
}
.hc-article-category a:hover { text-decoration: none; opacity: 0.85; }

.hc-article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 10px;
    color: #040C20;
}
.hc-article-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #5D6371;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.hc-article-body { font-size: 1.05rem; line-height: 1.8; color: #040C20; }
.hc-article-body h2 { font-size: 1.8rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.8rem; }
.hc-article-body h3 { font-size: 1.4rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.6rem; }
.hc-article-body p { margin-bottom: 1rem; font-size: 1.26rem; }
.hc-article-body img { max-width: 100%; height: auto !important; display: block; }
.hc-article-body iframe,
.hc-article-body table,
.hc-article-body figure { max-width: 100%; overflow-x: auto; }
.hc-article-body ul, .hc-article-body ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.hc-article-body li { margin-bottom: 0.3rem; font-size: 1.12rem; }

/* share buttons — see share-buttons.css */

.hc-related-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(93,99,113,0.17);
}
.hc-related-section h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; color: #040C20; }
.hc-related-card {
    display: block;
    padding: 14px 16px;
    border: 1px solid rgba(93,99,113,0.17);
    border-radius: 8px;
    color: #040C20;
    text-decoration: none;
    margin-bottom: 12px;
    background: #eeeae0;
    transition: box-shadow 0.2s;
}
.hc-related-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.09);
    color: #040C20;
    text-decoration: none;
}
.hc-related-card h6 { font-size: 1.1rem; font-weight: 600; margin-bottom: 2px; color: #040C20; }
.hc-related-card .hc-meta { font-size: 11px; color: #5D6371; }

@media (max-width: 576px) {
    .hc-article-title { font-size: 1.7rem; }
    .hc-article-body h2 { font-size: 1.4rem; }
    .hc-article-body h3 { font-size: 1.2rem; }
}

/* ── Dark mode ──────────────────────────────────────────────────────────── */

body.dark-mode .hc-hero { background: linear-gradient(135deg, #0d3ba8 0%, #081e5a 100%); }
body.dark-mode .hc-hero-list { background: #0d3ba8; }
body.dark-mode .hc-wrapper { background: rgb(18,35,50); }

body.dark-mode .hc-search-input { background: rgba(255,255,255,0.12); color: #dfdfdf; box-shadow: none; }
body.dark-mode .hc-search-input::placeholder { color: #6a8499; }
body.dark-mode .hc-search-icon { color: #6a8499; }

body.dark-mode .hc-filter-select {
    background-color: rgba(255,255,255,0.08);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23aaa' d='M5 7L0 2h10z'/%3E%3C/svg%3E");
    border-color: rgba(255,255,255,0.15);
    color: #dfdfdf;
}
body.dark-mode .hc-list-category-pill { background: #1a3c6e; }
body.dark-mode .hc-list-layout .hc-list-articles li { border-bottom-color: rgba(255,255,255,0.08); }
body.dark-mode .hc-list-layout .hc-list-articles a { color: #81d4fa; }

body.dark-mode .hc-article-card {
    background: #1e3a52;
    border-color: #2a4a62;
    color: #dfdfdf;
}
body.dark-mode .hc-article-card:hover { color: #fff; }
body.dark-mode .hc-article-card h5 { color: #e8e8e8; }
body.dark-mode .hc-article-card .hc-meta { color: #9ab; }

body.dark-mode .hc-card-layout .hc-section-heading { color: #dfdfdf; border-bottom-color: #2a4a62; }
body.dark-mode .hc-card-layout .btn-view-more { color: #81d4fa; }

body.dark-mode .hc-list-layout .hc-list-category-header { color: #dfdfdf; border-bottom-color: #2a4a62; }
body.dark-mode .hc-list-layout .hc-list-articles li { border-bottom-color: #2a4a62; }
body.dark-mode .hc-list-layout .hc-list-articles a { color: #81d4fa; }

body.dark-mode .hc-article-body { color: #dfdfdf; }
body.dark-mode .hc-article-body h2,
body.dark-mode .hc-article-body h3 { color: #dfdfdf; }
body.dark-mode .hc-article-title { color: #dfdfdf; }
body.dark-mode .hc-article-category a { background: rgba(13,110,253,0.2); color: #81d4fa; }
body.dark-mode .hc-article-meta { color: #9aa0ab; }

body.dark-mode .hc-related-section { border-top-color: rgba(255,255,255,0.08); }
body.dark-mode .hc-related-section h3 { color: #dfdfdf; }
body.dark-mode .hc-related-card { background: rgb(32,57,79); border-color: rgba(255,255,255,0.08); color: #dfdfdf; }
body.dark-mode .hc-related-card:hover { color: #dfdfdf; }
body.dark-mode .hc-related-card h6 { color: #dfdfdf; }
body.dark-mode .hc-related-card .hc-meta { color: #9aa0ab; }
body.dark-mode .hc-back-link { color: #7cb9fb; }
