/* ================================================================
   TRADEPRINT THEME — PAGES/HELP-CENTRE.CSS
   ================================================================ */

/* ----------------------------------------------------------------
   HELP HERO
   ---------------------------------------------------------------- */
.help-hero {
    background:
        linear-gradient(160deg, rgba(3,7,18,.75) 0%, rgba(14,42,95,.65) 50%, rgba(21,101,192,.55) 100%),
        url('../../images/hero/3.webp') center/cover no-repeat;
    padding: 52px 0 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.help-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 40%, rgba(66,165,245,.1) 0%, transparent 60%);
    pointer-events: none;
}

.help-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: rgba(255,255,255,.75);
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.help-hero__eyebrow i { color: var(--tp-green-light); font-size: 11px; }

.help-hero__title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.help-hero__sub {
    font-size: 14px;
    color: rgba(255,255,255,.65);
    margin-bottom: 24px;
}

.help-search-wrap {
    max-width: 560px;
    margin: 0 auto;
    position: relative;
}

.help-search {
    width: 100%;
    padding: 15px 130px 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-family: inherit;
    color: var(--tp-dark);
    box-shadow: 0 4px 24px rgba(0,0,0,.18);
}

.help-search:focus { outline: none; }

.help-search-btn {
    position: absolute;
    right: 6px;
    top: 6px;
    background: var(--tp-green);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 9px 22px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.help-search-btn:hover { background: var(--tp-green-dark); }

/* ----------------------------------------------------------------
   MAIN LAYOUT — sidebar + content
   ---------------------------------------------------------------- */
.help-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    padding: 36px 0 56px;
}

/* ----------------------------------------------------------------
   SIDEBAR NAV
   ---------------------------------------------------------------- */
.help-nav {
    background: #fff;
    border: 1px solid var(--tp-border);
    border-radius: 10px;
    padding: 14px;
    position: sticky;
    top: 24px;
    height: fit-content;
}

.help-nav__title {
    font-size: 11px;
    font-weight: 700;
    color: var(--tp-text-muted);
    padding: 6px 10px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.help-nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    font-size: 13px;
    color: var(--tp-text-muted);
    text-decoration: none;
    border-radius: 6px;
    transition: background .15s, color .15s;
}

.help-nav__link:hover {
    background: var(--tp-green-pale);
    color: var(--tp-green);
}

.help-nav__link.active {
    background: var(--tp-green-pale);
    color: var(--tp-green);
    font-weight: 600;
}

.help-nav__link i { width: 15px; text-align: center; flex-shrink: 0; }

.help-nav__count {
    margin-left: auto;
    background: #f0f0f0;
    color: var(--tp-text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
}

/* ----------------------------------------------------------------
   CONTENT AREA
   ---------------------------------------------------------------- */
.help-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: 8px;
}

.help-content-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--tp-dark);
    margin: 0;
}

.help-content-header span {
    font-size: 12px;
    color: var(--tp-text-muted);
}

/* ----------------------------------------------------------------
   POPULAR TOPICS
   ---------------------------------------------------------------- */
.pop-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.pop-topic {
    border: 1px solid var(--tp-border);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    color: var(--tp-text-muted);
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}

.pop-topic:hover {
    border-color: var(--tp-green);
    color: var(--tp-green);
    background: var(--tp-green-pale);
}

/* ----------------------------------------------------------------
   ARTICLE LIST
   ---------------------------------------------------------------- */
.help-articles {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 20px;
}

.help-article {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--tp-border);
    text-decoration: none;
    color: var(--tp-text);
    transition: color .15s;
}

.help-article:last-child { border-bottom: none; }
.help-article:hover { color: var(--tp-green); }

.help-article__icon {
    width: 36px;
    height: 36px;
    background: var(--tp-green-pale);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    color: var(--tp-green);
    flex-shrink: 0;
}

.help-article__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--tp-dark);
    margin-bottom: 4px;
    transition: color .15s;
}

.help-article:hover .help-article__title { color: var(--tp-green); }

.help-article__excerpt {
    font-size: 12px;
    color: var(--tp-text-muted);
    line-height: 1.6;
}

.help-article__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    font-size: 11px;
    color: var(--tp-text-muted);
}

.help-article__arrow {
    margin-left: auto;
    color: var(--tp-text-muted);
    font-size: 12px;
    flex-shrink: 0;
    align-self: center;
}

/* ----------------------------------------------------------------
   CONTACT CTA
   ---------------------------------------------------------------- */
.help-contact-cta {
    background: linear-gradient(135deg, #1e3a5f 0%, #1e3a5f 100%);
    border-radius: 10px;
    padding: 24px 28px;
    margin-top: 28px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.help-contact-cta h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.help-contact-cta p {
    font-size: 13px;
    opacity: .75;
    margin: 0;
}

.help-contact-cta__btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.cta-btn-white {
    background: #fff;
    color: var(--tp-dark);
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: opacity .2s;
    font-family: inherit;
    white-space: nowrap;
}

.cta-btn-white:hover { opacity: .88; color: var(--tp-dark); }

.cta-btn-ghost-w {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.45);
    border-radius: 6px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all .2s;
    font-family: inherit;
    white-space: nowrap;
}

.cta-btn-ghost-w:hover {
    border-color: #fff;
    background: rgba(255,255,255,.1);
    color: #fff;
}

/* ----------------------------------------------------------------
   RESPONSIVE — TABLET (max 1024px)
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
    .help-layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 24px 0 40px;
    }

    /* Nav becomes horizontal scrollable tab strip */
    .help-nav {
        position: static;
        border-radius: 10px 10px 0 0;
        border-bottom: none;
        padding: 10px 14px 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .help-nav::-webkit-scrollbar { display: none; }

    .help-nav__title { display: none; }

    .help-nav > div {
        display: none;
    }

    /* Turn links into tabs */
    .help-nav {
        display: flex;
        gap: 4px;
        flex-wrap: nowrap;
        align-items: center;
        background: #fff;
        border: 1px solid var(--tp-border);
        padding: 8px 12px;
    }

    .help-nav__link {
        white-space: nowrap;
        border-radius: 20px;
        padding: 7px 14px;
        font-size: 12px;
        gap: 6px;
        flex-shrink: 0;
    }

    .help-nav__count { display: none; }

    /* Content area gets a border to visually attach below nav */
    .help-layout > div:last-child {
        background: #fff;
        border: 1px solid var(--tp-border);
        border-top: none;
        border-radius: 0 0 10px 10px;
        padding: 20px 16px;
    }
}

/* ----------------------------------------------------------------
   RESPONSIVE — MOBILE (max 767px)
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
    /* Hero */
    .help-hero {
        padding: 36px 0 32px;
    }

    .help-hero__title {
        font-size: 26px;
    }

    .help-hero__sub {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .help-search {
        padding: 13px 110px 13px 16px;
        font-size: 13px;
    }

    .help-search-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    /* Layout */
    .help-layout {
        padding: 16px 0 32px;
    }

    /* Articles */
    .help-article {
        padding: 14px 0;
        gap: 12px;
    }

    .help-article__excerpt {
        display: none;
    }

    /* CTA */
    .help-contact-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 16px;
    }

    .help-contact-cta__btns {
        width: 100%;
    }

    .cta-btn-white,
    .cta-btn-ghost-w {
        flex: 1;
        justify-content: center;
    }

    .help-content-header h2 {
        font-size: 17px;
    }
}

/* ----------------------------------------------------------------
   RESPONSIVE — SMALL MOBILE (max 575px)
   ---------------------------------------------------------------- */
@media (max-width: 575px) {
    /* Hero */
    .help-hero {
        padding: 28px 0 24px;
    }

    .help-hero__title {
        font-size: 22px;
        letter-spacing: 0;
    }

    .help-hero__eyebrow {
        font-size: 10px;
        padding: 4px 10px;
        margin-bottom: 10px;
    }

    /* Search — stack button below on tiny screens */
    .help-search-wrap {
        padding: 0 4px;
    }

    .help-search {
        padding: 12px 16px 48px;
        border-radius: 12px;
        font-size: 13px;
    }

    .help-search-btn {
        position: absolute;
        right: 8px;
        top: auto;
        bottom: 8px;
        left: 8px;
        width: calc(100% - 16px);
        justify-content: center;
        border-radius: 8px;
    }

    /* Nav tabs */
    .help-nav {
        padding: 6px 8px;
    }

    .help-nav__link {
        padding: 6px 10px;
        font-size: 11px;
    }

    .help-nav__link i { display: none; }

    /* Content */
    .help-layout > div:last-child {
        padding: 16px 12px;
    }

    .pop-topic {
        font-size: 11px;
        padding: 4px 10px;
    }

    .help-article__icon {
        width: 30px;
        height: 30px;
        font-size: .8rem;
    }

    .help-article__title {
        font-size: 13px;
    }

    .help-article__meta { display: none; }

    .help-contact-cta {
        padding: 16px;
    }

    .help-contact-cta h3 {
        font-size: 15px;
    }

    .cta-btn-white,
    .cta-btn-ghost-w {
        font-size: 12px;
        padding: 9px 14px;
    }
}
