/* Help center (/support). Page frame as on the public tool pages (seo-tools/backlink-checker),
   cards and article pages like the old help center (posticy.tawk.help). */

html, body.hc-page { height: 100%; }
body.hc-page { display: flex; flex-direction: column; min-height: 100vh; background: #EEF0F8; }
.hc-page #kt_header { background-color: #fff !important; border-bottom: 1px solid #E4E6EF; box-shadow: none !important; }
.hc-page .page-wrapper { flex: 1 0 auto; padding-top: 65px; }
.hc-page footer { flex-shrink: 0; }
.hc-page .tool-hero { background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%); padding: 50px 0 70px; }
.hc-page .tool-hero h1 a:hover { text-decoration: none; }
.hc-page .content-area { margin-top: -40px; padding-bottom: 60px; }
.hc-brand { width: 13rem; }

/* Inner pages: only the search box in the hero */
.hc-page:not(.hc-home) .tool-hero { padding: 40px 0; }
.hc-page:not(.hc-home) .content-area { margin-top: 0; padding-top: 24px; }
.hc-page:not(.hc-home) .hc-hero-search-wrap { max-width: none; }

/* Home: the cards sit on the edge of the hero */
.hc-home .tool-hero { padding-bottom: 110px; }
.hc-home .content-area { margin-top: -80px; }

.hc-icon { display: inline-block; vertical-align: middle; }

/* ── Search with suggestions ─────────────────────────────────────────── */
.hc-search-wrap { position: relative; z-index: 20; text-align: left; }
.hc-hero-search-wrap { max-width: 600px; margin: 0 auto; }
.hc-hero-search { flex-wrap: nowrap; background: #fff; }
.hc-hero-search .form-control { min-width: 0; }
.hc-hero-search .form-control:focus { box-shadow: none; }
.hc-hero-search .form-control::placeholder { color: #B5B5C3; }
.hc-search-clear {
    display: none; flex: 0 0 auto; align-items: center; padding: 0 12px; border: 0;
    background: #fff; color: #B5B5C3; font-size: 22px; line-height: 1; cursor: pointer;
}
.hc-search-clear:hover { color: #3F4254; }
.hc-search-clear:focus { outline: none; }
.hc-has-value .hc-search-clear { display: flex; }
.hc-suggest {
    display: none; position: absolute; top: 100%; left: 0; right: 0; margin-top: 6px;
    max-height: 420px; overflow-y: auto; background: #fff; border-radius: 0.42rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}
.hc-suggest.open { display: block; }
.hc-suggest-item { display: flex; align-items: center; padding: 14px 20px; color: #3F4254; font-size: 1.08rem; }
.hc-suggest-item svg { flex: 0 0 auto; width: 18px; height: 18px; margin-right: 14px; color: #B5B5C3; }
.hc-suggest-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-suggest-item:hover, .hc-suggest-item:focus, .hc-suggest-item.active { background: #F3F6F9; color: #181C32; text-decoration: none; }
.hc-suggest-all { background: #F9FAFB; color: #181C32; font-weight: 500; }
.hc-suggest-all svg { width: 22px; height: 22px; color: #181C32; }
.hc-suggest-empty { padding: 14px 20px; color: #B5B5C3; font-size: 1.08rem; }

/* ── Grid / list toggle ──────────────────────────────────────────────── */
.hc-view-toggle { display: flex; justify-content: center; margin-top: 1.75rem; }
.hc-view-btn {
    display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0 5px;
    padding: 0; border: 0; border-radius: 2px; background-color: rgba(255, 255, 255, 0.35); color: #1e3a5f; cursor: pointer;
}
.hc-view-btn svg { width: 22px; height: 22px; }
.hc-view-btn.active { background-color: #fff; color: #2563eb; }
.hc-view-btn:focus { outline: none; }

/* ── Home: category cards ────────────────────────────────────────────── */
.hc-category-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hc-category-card {
    display: flex; flex-direction: column; align-items: center; min-width: 0; min-height: 245px;
    padding: 40px 20px 28px; background: #fff; border: 1px solid #E4E6EF; border-radius: 4px;
    text-align: center; color: #000; transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.hc-category-card:hover, .hc-category-card:focus {
    border-color: #D1D3E0; box-shadow: 0 0 30px 0 rgba(82, 63, 105, 0.1); color: #000; text-decoration: none;
}
.hc-category-card-icon { color: #000; line-height: 0; margin-bottom: 40px; }
.hc-category-card-icon .hc-icon { width: 48px; height: 48px; }
.hc-category-card-title { color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 20px; font-weight: 700; line-height: 1.3; }
.hc-category-card-descr { margin-top: 6px; color: #7E8299; font-size: 13px; }
.hc-category-card-meta { margin-top: 14px; }
.hc-category-card-info { color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 13px; }

/* List view */
body.hc-view-list .hc-category-cards { grid-template-columns: minmax(0, 1fr); }
.hc-view-list .hc-category-card { flex-direction: row; min-height: 0; padding: 20px 25px; text-align: left; }
.hc-view-list .hc-category-card-icon { margin: 0 20px 0 0; }
.hc-view-list .hc-category-card-icon .hc-icon { width: 32px; height: 32px; }
.hc-view-list .hc-category-card-main { flex: 1 1 auto; min-width: 0; }
.hc-view-list .hc-category-card-meta { margin: 0 0 0 20px; text-align: right; white-space: nowrap; }

.hc-empty { padding: 60px 20px; background: #fff; border-radius: 4px; text-align: center; }
.hc-empty-icon { margin-bottom: 1.25rem; color: #3699FF; opacity: 0.4; line-height: 0; }
.hc-empty-icon .hc-icon { width: 56px; height: 56px; }

/* ── Shared pieces ───────────────────────────────────────────────────── */
.hc-updated { display: block; margin-top: 4px; color: #999; font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: 700; }
.hc-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 20px; font-family: Arial, Helvetica, sans-serif; font-size: 14px; }
.hc-breadcrumbs a { color: #000; }
.hc-breadcrumbs a:hover { color: #3699FF; text-decoration: none; }
.hc-breadcrumbs-sep { margin: 0 14px; color: #999; line-height: 0; }
.hc-breadcrumbs-sep .hc-icon { width: 12px; height: 12px; }
.hc-breadcrumbs-current { color: #999; }
.hc-count { position: absolute; top: 18px; right: 28px; display: flex; align-items: center; color: #000; font-size: 13px; }
.hc-count .hc-icon { width: 15px; height: 15px; margin-right: 6px; }
.hc-author-avatar {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 32px; height: 32px; border-radius: 50%; background: #E1F0FF; color: #3699FF;
}
.hc-author-avatar .hc-icon { width: 18px; height: 18px; }

/* ── Category page ───────────────────────────────────────────────────── */
.hc-category-page { display: flex; align-items: flex-start; gap: 60px; }
.hc-category-aside { flex: 0 0 280px; max-width: 280px; }
.hc-category-main { flex: 1 1 auto; min-width: 0; }
.hc-side-card { background: #fff; border: 1px solid #E8E8E8; border-radius: 4px; text-align: center; font-family: Arial, Helvetica, sans-serif; }
.hc-side-card-top { position: relative; padding: 45px 25px 28px; border-bottom: 1px solid #E8E8E8; text-align: center; }
.hc-side-card-icon { display: block; color: #000; line-height: 0; }
.hc-side-card-icon .hc-icon { width: 48px; height: 48px; }
.hc-side-card-name { display: block; margin: 40px 0 0; color: #333; font-family: Arial, Helvetica, sans-serif; font-size: 24px; font-weight: 700; line-height: 1.3; }
.hc-side-card-descr { margin-top: 8px; color: #777; font-size: 13px; }
.hc-side-card-authors { padding: 22px 25px 28px; }
.hc-side-card-authors-icon { color: #000; line-height: 0; }
.hc-side-card-authors-icon .hc-icon { width: 24px; height: 24px; }
.hc-author { display: flex; align-items: center; justify-content: center; margin-top: 24px; }
.hc-author-name { margin-left: 12px; color: #999; font-size: 11px; font-weight: 700; }

.hc-article-row {
    display: flex; align-items: center; margin-bottom: 16px; padding: 30px 40px 30px 70px;
    background: #fff; border: 1px solid #E8E8E8; border-radius: 4px; color: #000;
    font-family: Arial, Helvetica, sans-serif; transition: border-color 0.2s ease;
}
.hc-article-row:hover, .hc-article-row:focus { border-color: #000; color: #000; text-decoration: none; }
.hc-article-row-icon { flex: 0 0 auto; margin-right: 55px; line-height: 0; }
.hc-article-row-icon .hc-icon { width: 44px; height: 44px; }
.hc-article-row-body { flex: 1 1 auto; min-width: 0; }
.hc-article-row-title { display: block; font-size: 24px; font-weight: 700; line-height: 1.3; }
.hc-article-row-arrow { flex: 0 0 auto; margin-left: 20px; line-height: 0; }
.hc-article-row-arrow .hc-icon { width: 20px; height: 20px; }
.hc-article-row-empty { display: block; padding: 30px 40px; color: #999; }
.hc-article-row-empty:hover { border-color: #E8E8E8; }

.hc-pager {
    display: flex; justify-content: space-between; padding: 30px 48px; background: #fff;
    border: 1px solid #E8E8E8; border-radius: 4px; font-family: Arial, Helvetica, sans-serif; font-size: 16px;
}
.hc-pager-link { display: inline-flex; align-items: center; color: #777; }
.hc-pager-link:hover { color: #000; text-decoration: none; }
.hc-pager-link.disabled { color: #DDD; }
.hc-pager-link .hc-icon { width: 18px; height: 18px; margin: 0 4px; }

.hc-other-categories { margin-top: 60px; text-align: center; }
.hc-other-categories-title { margin: 0 0 40px; color: #999; font-family: Arial, Helvetica, sans-serif; font-size: 24px; font-weight: 700; }
.hc-other-categories-list { display: grid; gap: 30px 215px; max-width: 940px; margin: 0 auto; }
.hc-other-categories-list.hc-cols-1 { grid-template-columns: minmax(0, 360px); justify-content: center; }
.hc-other-categories-list.hc-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hc-other-categories-list.hc-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.hc-other-category {
    display: flex; align-items: center; padding: 50px 40px; background: #fff; border: 1px solid #E8E8E8;
    border-radius: 4px; color: #000; text-align: left; font-family: Arial, Helvetica, sans-serif; transition: border-color 0.2s ease;
}
.hc-other-category:hover, .hc-other-category:focus { border-color: #000; color: #000; text-decoration: none; }
.hc-other-category-icon { flex: 0 0 auto; margin-right: 32px; line-height: 0; }
.hc-other-category-icon .hc-icon { width: 48px; height: 48px; }
.hc-other-category-body { min-width: 0; }
.hc-other-category-name { display: block; margin-bottom: 16px; font-size: 17px; font-weight: 700; }
.hc-other-category-count { display: block; font-size: 13px; }

/* ── Search page ─────────────────────────────────────────────────────── */
.hc-search-title { margin: 0 0 24px; color: #181C32; font-family: Arial, Helvetica, sans-serif; font-size: 28px; font-weight: 700; }

/* ── Article page ────────────────────────────────────────────────────── */
.hc-article-card { position: relative; padding: 30px 30px 60px; background: #fff; border: 1px solid #E8E8E8; border-radius: 4px; }
.hc-article-toggle, .hc-article-sidebar-close {
    position: absolute; z-index: 1; padding: 4px; border: 0; background: transparent; color: #000; line-height: 0; cursor: pointer;
}
.hc-article-toggle { top: 8px; left: 12px; }
.hc-article-toggle .hc-icon, .hc-article-sidebar-close .hc-icon { width: 18px; height: 18px; }
.hc-article-toggle:hover, .hc-article-sidebar-close:hover { color: #3699FF; }
.hc-article-toggle:focus, .hc-article-sidebar-close:focus { outline: none; }
.hc-article-sidebar { display: none; }
.hc-article-card.hc-sidebar-open { display: flex; align-items: stretch; padding: 0; }
.hc-sidebar-open .hc-article-toggle { display: none; }
.hc-sidebar-open .hc-article-sidebar {
    display: block; flex: 0 0 280px; max-width: 280px; border-right: 1px solid #E8E8E8; font-family: Arial, Helvetica, sans-serif;
}
.hc-sidebar-open .hc-article-wrap { flex: 1 1 auto; min-width: 0; padding: 40px 80px 60px; }
.hc-sidebar-open .hc-article { margin: 0; }
.hc-article-sidebar-close { top: 14px; left: 22px; }
.hc-article-sidebar-category, .hc-article-sidebar-category:hover, .hc-article-sidebar-category:focus { display: block; color: #333; text-decoration: none; }
.hc-article-sidebar-list { margin: 0; padding: 28px 22px 22px; list-style: none; }
.hc-article-sidebar-list li { margin-bottom: 14px; }
.hc-article-sidebar-list a { display: flex; align-items: flex-start; color: #000; font-size: 14px; line-height: 1.5; }
.hc-article-sidebar-list a:hover, .hc-article-sidebar-list a:focus { color: #3699FF; text-decoration: none; }
.hc-article-sidebar-list a.active { font-weight: 700; }
.hc-article-sidebar-list .hc-icon { flex: 0 0 auto; width: 16px; height: 16px; margin: 2px 12px 0 0; }

.hc-article { max-width: 640px; margin: 0 auto; font-family: Arial, Helvetica, sans-serif; }
.hc-article-title { margin: 10px 0 24px; color: #333; font-family: Arial, Helvetica, sans-serif; font-size: 46px; font-weight: 700; line-height: 1.3; }
.hc-article-meta { display: flex; align-items: center; margin-bottom: 30px; }
.hc-article-meta .hc-author-avatar { margin-right: 12px; }
.hc-article-author { display: block; color: #777; font-size: 13px; }
.hc-article-meta .hc-updated { margin-top: 2px; }
.hc-article-body { color: #222; font-size: 18px; line-height: 1.6; overflow-wrap: break-word; }
.hc-article-body h1, .hc-article-body h2, .hc-article-body h3, .hc-article-body h4 {
    margin: 1.5em 0 0.6em; color: #222; font-family: Arial, Helvetica, sans-serif; font-weight: 700;
}
.hc-article-body p, .hc-article-body ul, .hc-article-body ol { margin-bottom: 1em; }
.hc-article-body img { max-width: 100%; height: auto; }
.hc-article-body a { color: #3699FF; }
.hc-related { margin-top: 50px; padding-top: 30px; border-top: 1px solid #E8E8E8; }
.hc-related-title { margin: 0 0 20px; color: #333; font-family: Arial, Helvetica, sans-serif; font-size: 20px; font-weight: 700; }
.hc-related-list a { display: flex; align-items: flex-start; margin-bottom: 12px; color: #3F4254; font-size: 16px; }
.hc-related-list a:hover { color: #3699FF; text-decoration: none; }
.hc-related-list .hc-icon { flex: 0 0 auto; width: 16px; height: 16px; margin: 3px 10px 0 0; color: #3699FF; }

/* ── "Submit Ticket" popup ───────────────────────────────────────────── */
.hc-modal[hidden], .hc-modal [hidden] { display: none !important; }
.hc-modal {
    position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1050; display: flex;
    align-items: flex-start; justify-content: center; padding: 25px 16px; overflow-y: auto;
}
body.hc-modal-open { overflow: hidden; }
.hc-modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, 0.25); }
.hc-modal-dialog {
    position: relative; width: 100%; max-width: 424px; background: #fff; border-radius: 4px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2); font-family: Arial, Helvetica, sans-serif;
}
.hc-modal-close {
    position: absolute; top: 14px; right: 18px; padding: 4px; border: 0; background: transparent;
    color: #CCC; line-height: 0; cursor: pointer;
}
.hc-modal-close:hover { color: #777; }
.hc-modal-close:focus { outline: none; }
.hc-modal-close .hc-icon { width: 18px; height: 18px; }
.hc-modal-title { margin: 0; padding: 36px 50px 44px; color: #999; font-family: Arial, Helvetica, sans-serif; font-size: 18px; font-weight: 700; text-align: center; }
.hc-modal-body { max-height: calc(100vh - 230px); padding: 0 46px 12px 32px; overflow-y: auto; }
.hc-field { margin-bottom: 14px; }
.hc-field label { display: block; margin-bottom: 6px; color: #999; font-size: 14px; font-weight: 400; }
.hc-field .form-control {
    height: 32px; padding: 6px 16px; border: 1px solid #E5E5E5; border-radius: 4px; color: #333;
    font-family: Arial, Helvetica, sans-serif; font-size: 14px;
}
.hc-field textarea.form-control { height: auto; min-height: 72px; resize: vertical; }
.hc-field .form-control::placeholder { color: #CCC; }
.hc-field .form-control:focus { border-color: #999; box-shadow: none; }
.hc-field .form-control.hc-invalid { border-color: #F64E60; }
.hc-field-error { margin-top: 4px; color: #F64E60; font-size: 12px; }
.hc-field-error:empty { display: none; }
.hc-ticket-alert { margin-bottom: 14px; padding: 10px 14px; border-radius: 4px; background: #FFE2E5; color: #F64E60; font-size: 13px; }
.hc-ticket-user { margin-bottom: 14px; color: #777; font-size: 13px; }
.hc-ticket-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.hc-ticket-captcha-note { margin: 4px 0 0; color: #B5B5C3; font-size: 11px; }
.hc-ticket-captcha-note a { color: #999; text-decoration: underline; }
.hc-modal-submit {
    display: block; width: 100%; height: 54px; border: 0; border-radius: 0 0 4px 4px; background: #F0F0F0;
    color: #999; font-family: Arial, Helvetica, sans-serif; font-size: 14px; cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.hc-modal-submit:hover, .hc-modal-submit:focus { background: #3699FF; color: #fff; outline: none; }
.hc-modal-submit[disabled] { background: #F0F0F0; color: #B5B5C3; cursor: default; }
.hc-ticket-done { padding: 0 40px 40px; color: #3F4254; font-size: 15px; text-align: center; }
.hc-ticket-done-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
    margin-bottom: 18px; border-radius: 50%; background: #C9F7F5; color: #1BC5BD;
}
.hc-ticket-done-icon .hc-icon { width: 28px; height: 28px; }
.hc-ticket-done p { margin-bottom: 24px; }
.grecaptcha-badge { z-index: 1060; }

/* ── Smaller screens ─────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .hc-category-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hc-category-page { flex-direction: column; align-items: stretch; gap: 24px; }
    .hc-category-aside { flex-basis: auto; max-width: none; }
    .hc-article-row { padding: 22px 24px; }
    .hc-article-row-icon { margin-right: 24px; }
    .hc-article-row-title { font-size: 18px; }
    .hc-other-categories-list.hc-cols-2, .hc-other-categories-list.hc-cols-3 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .hc-article-title { font-size: 32px; }
    .hc-article-body { font-size: 16px; }
    .hc-article-card.hc-sidebar-open { flex-direction: column; }
    .hc-sidebar-open .hc-article-sidebar { flex-basis: auto; max-width: none; border-right: 0; border-bottom: 1px solid #E8E8E8; }
    .hc-sidebar-open .hc-article-wrap { padding: 30px 20px 40px; }
}
@media (max-width: 767.98px) {
    .hc-category-cards { grid-template-columns: minmax(0, 1fr); }
    .hc-category-card { min-height: 0; }
}
@media (max-width: 575.98px) {
    .hc-brand { width: auto; }
    .hc-brand img { max-height: 28px !important; }
    .hc-hide-xs { display: none !important; }
    .hc-page .topbar .mr-6 { margin-right: 1rem !important; }
    .hc-page .tool-hero h1 { font-size: 1.6rem; }
    .hc-page .tool-hero p br { display: none; }
}
