/* HERO */
.help-hero {
    background: linear-gradient(135deg, #0b4640, #1d85b3);
    padding: 70px 20px;
    text-align: center;
    color: #fff;
}

.help-hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.search-box {
    max-width: 520px;
    margin: 0 auto 15px;
}

.search-box input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    outline: none;
}

.popular-topics {
    font-size: 14px;
    opacity: 0.9;
}

.popular-topics a {
    color: #e0e7ff;
    text-decoration: underline;
}

/* CATEGORIES */
.help-categories {
    padding: 60px 20px;
}

.container {
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.category-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    width: 250px;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.1);
}

.category-card .icon {
    font-size: 34px;
    margin-bottom: 14px;
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.category-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .help-hero h1 {
        font-size: 32px;
    }
}
/* LAYOUT */
.kb-layout {
    display: grid;
    grid-template-columns: 260px 1fr 260px;
    gap: 40px;
    max-width: 1400px;
    margin: auto;
    padding: 40px 20px;
}

/* LEFT SIDEBAR */
.kb-sidebar-left {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #555;
}

.category-list {
    list-style: none;
}

.category-list li {
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    color: #444;
}

.category-list li:hover {
    background: #eef2ff;
}

.category-list li.active {
    background: #e0e7ff;
    font-weight: 600;
    color: #1e3a8a;
}
.category-list li a {
    text-decoration: none;
    color: inherit;
    display: block; /* makes the whole row clickable */
}

.category-list li a:hover,
.category-list li a:focus,
.category-list li a:active {
    text-decoration: none;
}

.category-card .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
}

.category-card .icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* Remove underline from section cards */
.help-categories a,
.help-categories a:hover,
.help-categories a:focus {
    text-decoration: none;
    color: inherit;
}

/* Optional: subtle hover effect instead */
.category-card:hover h3 {
    text-decoration: none;
    color: #0f766e; /* match your theme */
}

/* Remove underline specifically from browse text */
.category-card p,
.category-card span {
    text-decoration: none;
}


/* MAIN CONTENT */
.kb-content {
    background: #fff;
    border-radius: 14px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.article-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 15px;
}

.read-time {
    color: #16a34a;
    font-weight: 500;
}

.kb-content h1 {
    font-size: 28px;
    margin-bottom: 20px;
    margin-top: 10px;
}

.article-intro {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.7;
}

.kb-content h2 {
    font-size: 24px;
    margin: 40px 0 15px;
}

.kb-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

/* RIGHT SIDEBAR */
.kb-sidebar-right {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.toc-list {
    list-style: none;
}

.toc-list li {
    margin-bottom: 10px;
}

.toc-list a {
    font-size: 14px;
    color: #444;
    text-decoration: none;
}

.toc-list a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .kb-layout {
        grid-template-columns: 1fr;
    }

    .kb-sidebar-left,
    .kb-sidebar-right {
        display: none;
    }

    .kb-content {
        padding: 30px;
    }

    .kb-content h1 {
        font-size: 30px;
    }
}
/* =====================================================
   HELP CENTER ARTICLE – FINAL LAYOUT STABILIZATION
   ===================================================== */

/* Lock grid columns */
.helpcenter-article .kb-layout {
    display: grid !important;
    grid-template-columns: 280px minmax(0, 1fr) 260px !important;
    column-gap: 48px;
}

/* Ensure center column never collapses */
.helpcenter-article .kb-content {
    width: 100% !important;
    min-width: 0 !important;
    overflow-wrap: break-word;
}

/* -------------------------------
   RIGHT SIDEBAR (TOC) – FIX
   ------------------------------- */
.helpcenter-article .kb-sidebar-right {
    position: sticky;
    top: 110px;
    width: 260px;
    max-width: 260px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

/* Reset inherited typography ONLY inside TOC */
.helpcenter-article .kb-sidebar-right p,
.helpcenter-article .kb-sidebar-right span,
.helpcenter-article .kb-sidebar-right div {
    display: none !important;
}

/* Allow only TOC elements */
.helpcenter-article .kb-sidebar-right .sidebar-title,
.helpcenter-article .kb-sidebar-right ul,
.helpcenter-article .kb-sidebar-right li,
.helpcenter-article .kb-sidebar-right a {
    display: block !important;
}

/* TOC styles */
.helpcenter-article .kb-sidebar-right .sidebar-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
    color: #444;
}

.helpcenter-article .kb-sidebar-right ul {
    list-style: none;
    padding: 0;
}

.helpcenter-article .kb-sidebar-right li {
    margin-bottom: 10px;
}

.helpcenter-article .kb-sidebar-right a {
    font-size: 14px;
    color: #555;
    text-decoration: none;
    line-height: 1.4;
}

.helpcenter-article .kb-sidebar-right a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* -------------------------------
   LEFT SIDEBAR WIDTH LOCK
   ------------------------------- */
.helpcenter-article .kb-sidebar-left {
    width: 280px;
    max-width: 280px;
}
.subcategory-block {
    margin-bottom: 40px;
}

.subcategory-block h2 {
    font-size: 22px;
    margin-bottom: 12px;
}

.article-list {
    list-style: none;
    padding: 0;
}

.article-list li {
    margin-bottom: 8px;
}

.article-list a {
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
}

.article-list a:hover {
    color: #0ea5a4;
    text-decoration: underline;
}
.help-section-title {
    padding: 60px 0 30px;
}
.help-section-title h2 {
    font-size: 32px;
    font-weight: 600;
}
.help-section-title p {
    color: #6b7280;
}

/* -------------------------------
   MOBILE FALLBACK
   ------------------------------- */
@media (max-width: 1100px) {
    .helpcenter-article .kb-layout {
        grid-template-columns: 1fr !important;
    }

    .helpcenter-article .kb-sidebar-left,
    .helpcenter-article .kb-sidebar-right {
        display: none;
    }
}
/* TOC ACTIVE STATE */
.toc-list a.active {
    color: #1e40af;
    font-weight: 600;
}
/* =====================================================
   BREADCRUMBS
   ===================================================== */
.kb-breadcrumbs {
    margin-bottom: 18px;
}

.kb-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

.kb-breadcrumbs li {
    color: #6b7280;
}

.kb-breadcrumbs li::after {
    content: "/";
    margin: 0 6px;
    color: #cbd5e1;
}

.kb-breadcrumbs li:last-child::after {
    content: "";
}

.kb-breadcrumbs a {
    color: #2563eb;
    text-decoration: none;
}

.kb-breadcrumbs a:hover {
    text-decoration: underline;
}

.kb-breadcrumbs [aria-current="page"] {
    color: #374151;
    font-weight: 500;
}
/* =====================================================
   ARTICLE FEEDBACK
   ===================================================== */
.article-feedback {
    margin-top: 60px;
    padding: 24px;
    border-radius: 12px;
    background: #FCF6ED;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.article-feedback p {
    font-size: 16px;
    font-weight: 500;
}

.feedback-actions {
    display: flex;
    gap: 12px;
}

.feedback-btn {
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid transparent;
    background: #fff;
}

.feedback-btn.yes {
    border-color: #2563eb;
    color: #2563eb;
}

.feedback-btn.no {
    border-color: #dc2626;
    color: #dc2626;
}

.feedback-btn:hover {
    background: #f3f4f6;
}

.feedback-btn.active {
    background: #2563eb;
    color: #fff;
}
/* =====================================================
   RELATED ARTICLES
   ===================================================== */
.related-articles {
    margin-top: 60px;
}

.related-articles h2 {
    font-size: 28px;
    margin-bottom: 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.related-card {
    display: block;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.1);
}

.related-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.related-card .tag {
    display: block;
    padding: 12px 16px 0;
    font-size: 13px;
    color: #555;
    text-decoration: underline;
}

.related-card h3 {
    padding: 10px 16px 20px;
    font-size: 18px;
    color: #0f172a;
    line-height: 1.4;
}
.help-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.help-accordion-title {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.accordion-item {
    border: 1px solid #e6eaf2;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    background: #fff;
    border: none;
    padding: 16px 20px;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion-header:hover {
    background: #f8f9fc;
}

.accordion-content {
    padding: 16px 20px;
    background: #fff;
}
.article-tags {
    margin: 12px 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tags .tag {
    background: #eef2ff;
    color: #1e3a8a;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 500;
}
/* SEARCH AUTOSUGGEST */
.hc-search-wrapper {
    position: relative;
}

.hc-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 10px;
    margin-top: 8px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    display: none;
    z-index: 9999;
}

.hc-search-item {
    padding: 14px 18px;
    font-size: 15px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    color: #111827;           /* BLACK TEXT */
    background: #ffffff;
}

.hc-search-item:last-child {
    border-bottom: none;
}

.hc-search-item:hover {
    background: #eef2ff;
    color: #111827;           /* KEEP BLACK ON HOVER */
}

.hc-no-result {
    padding: 14px 18px;
    color: #374151;   
    font-size: 14px;
}
/* SEARCH LOADER */
.hc-search-loader {
    position: absolute;
    right: 16px;
    top: 50%;
    width: 18px;
    height: 18px;
    border: 2px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    transform: translateY(-50%);
    animation: hc-spin 0.8s linear infinite;
    display: none;
}

@keyframes hc-spin {
    to { transform: translateY(-50%) rotate(360deg); }
}
