
/* =========================================================
   AINOSOF TECHNOLOGY — FAQ HELP CENTRE
   Primary: #020066
   Accent: #c00063
========================================================= */

.ain-faq-body {
    background: #fff;
    color: #182638;
    overflow-x: hidden;
}

.ain-faq-page {
    --faq-primary: #020066;
    --faq-primary-dark: #09004d;
    --faq-accent: #c00063;
    --faq-text: #182638;
    --faq-muted: #64708a;
    --faq-border: #e3def0;
    --faq-soft: #fcf6fb;
    width: 100%;
    max-width: 100%;
}

/* =========================================================
   HERO SECTION
========================================================= */

.ain-faq-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(110deg, #fff5fb 0%, #fff 48%, #fcf0f8 100%);
    padding: 22px 20px 28px;
    text-align: center;
    isolation: isolate;
}

.ain-faq-hero-inner {
    max-width: 1050px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.ain-faq-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7px 18px;
    background: #fbe3f1;
    border-radius: 50px;
    color: var(--faq-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
    margin-bottom: 6px;
}

.ain-faq-hero h1 {
    color: var(--faq-primary);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.25;
    /*margin: 0 0 7px;*/
}

.ain-faq-hero h1 span {
    color: var(--faq-accent);
}

.ain-faq-hero-inner > p {
    color: #606789;
    font-size: 14px;
    margin: 0 auto 12px;
    line-height: 1.6;
}

.ain-faq-hero-shape {
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.ain-faq-shape-one {
    width: 260px;
    height: 260px;
    background: rgba(236, 174, 217, .23);
    border-radius: 50%;
    left: -155px;
    top: 65px;
}

.ain-faq-shape-two {
    width: 270px;
    height: 270px;
    background: rgba(236, 174, 217, .2);
    border-radius: 50%;
    right: -140px;
    top: -195px;
}

/* Search — single cross only */

.ain-faq-search {
    position: relative;
    width: 100%;
    max-width: 605px;
    height: 48px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 17px 0 21px;
    background: #fff;
    border: 1px solid #e2d9f0;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(2, 0, 102, .07);
    transition: .25s ease;
}

.ain-faq-search:focus-within {
    border-color: var(--faq-accent);
    box-shadow: 0 0 0 3px rgba(192, 0, 99, .08);
}

.ain-faq-search > i {
    color: var(--faq-primary);
    font-size: 17px;
    flex-shrink: 0;
}

.ain-faq-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0 !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--faq-text);
    font-size: 14px;
    padding: 0 !important;
    -webkit-appearance: none;
    appearance: none;
}

.ain-faq-search input::-webkit-search-cancel-button,
.ain-faq-search input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.ain-faq-search input::-ms-clear,
.ain-faq-search input::-ms-reveal {
    display: none;
}

.ain-faq-search input::placeholder {
    color: #777d9a;
}

.ain-faq-search button {
    display: none;
    border: 0;
    background: transparent;
    color: #777;
    cursor: pointer;
    padding: 5px;
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
}

.ain-faq-search.has-value button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ain-faq-search-info {
    font-size: 12px;
    color: var(--faq-muted);
    margin-top: 7px;
    min-height: 0;
}

.ain-faq-search-info:empty {
    display: none;
}

/* =========================================================
   MAIN CONTENT
========================================================= */

.ain-faq-content-section {
    padding: 25px 25px 30px;
    background: #fff;
}

.ain-faq-layout {
    width: 100%;
    max-width: 1405px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* =========================================================
   LEFT SIDEBAR — CATEGORY TABS
========================================================= */

.ain-faq-sidebar {
    position: sticky;
    top: 30px;
    align-self: start;
    min-width: 0;
}

.ain-faq-sidebar-inner {
    padding: 6px;
    background: #fff;
    border: 1px solid #e3def0;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(2, 0, 102, .045);
}

.ain-faq-sidebar-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px 10px;
    border-bottom: 1px solid #efe8f6;
    margin-bottom: 6px;
}

.ain-faq-sidebar-line {
    width: 4px;
    height: 16px;
    border-radius: 4px;
    background: var(--faq-accent);
}

.ain-faq-sidebar-heading h3 {
    margin: 0;
    color: var(--faq-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.ain-faq-tabs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px;
}

.ain-faq-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 46px;
    padding: 9px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--faq-primary);
    font-size: 13.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all .22s ease;
}

.ain-faq-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 8px;
    background: #f5effa;
    color: var(--faq-primary);
    font-size: 14px;
    transition: all .22s ease;
}

.ain-faq-tab-text {
    flex: 1;
    line-height: 1.3;
    color: inherit;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ain-faq-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 11px;
    background: #f9e5f1;
    color: var(--faq-accent);
    font-size: 11px;
    font-weight: 700;
    transition: all .22s ease;
    flex-shrink: 0;
}

.ain-faq-tab:hover {
    background: #fbf1f8;
    color: var(--faq-accent);
}

.ain-faq-tab:hover .ain-faq-tab-icon {
    background: #f9e5f1;
    color: var(--faq-accent);
}

.ain-faq-tab.active {
    background: var(--faq-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(2, 0, 102, .16);
}

.ain-faq-tab.active .ain-faq-tab-icon {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.ain-faq-tab.active .ain-faq-tab-count {
    background: var(--faq-accent);
    color: #fff;
}

/* =========================================================
   RIGHT — FAQ PANELS
========================================================= */

.ain-faq-content-area {
    min-width: 0;
    width: 100%;
}

.ain-faq-panel {
    display: block;                 /* all categories visible */
    animation: none;
    scroll-margin-top: 90px;        /* offset for sticky header + smooth scroll */
}

.ain-faq-panel + .ain-faq-panel {
    margin-top: 28px;               /* spacing between categories */
    padding-top: 24px;
    border-top: 1px dashed #efe8f6; /* visual separator */
}
@keyframes ainFaqFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ain-faq-category-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top:7px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #efe8f6;
    flex-wrap: wrap;
}

.ain-faq-heading-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.ain-faq-heading-line {
    width: 5px;
    height: 32px;
    border-radius: 5px;
    background: var(--faq-accent);
    flex-shrink: 0;
}

.ain-faq-category-heading h2 {
    color: var(--faq-primary);
    font-size: 19px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: .2px;
    word-break: break-word;
}

.ain-faq-category-heading p {
    color: var(--faq-muted);
    font-size: 12px;
    margin: 3px 0 0;
    word-break: break-word;
}

.ain-faq-count {
    padding: 7px 15px;
    background: #fbe5f2;
    color: var(--faq-accent);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

/* =========================================================
   FAQ ACCORDION
========================================================= */

.ain-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ain-faq-item {
    background: #fff;
    border: 1px solid #e4def0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .25s ease, box-shadow .25s ease,
                background .25s ease;
}

.ain-faq-item:hover {
    border-color: #d4c2e7;
}

.ain-faq-item.active {
    background: linear-gradient(110deg, #fffafd, #fbf5fa);
    border-color: #d8c8ed;
    box-shadow: 0 3px 14px rgba(2, 0, 102, .05);
}

.ain-faq-question {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 54px;
    padding: 12px 18px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    gap: 17px;
}

.ain-faq-number {
    width: 26px;
    height: 26px;
    min-width: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--faq-accent);
    color: #fff;
    border-radius: 50%;
    font-size: 11.5px;
    font-weight: 700;
    flex-shrink: 0;
}

.ain-faq-question-text {
    flex: 1;
    color: var(--faq-primary);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    min-width: 0;
    word-break: break-word;
}

.ain-faq-toggle {
    width: 26px;
    height: 26px;
    min-width: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--faq-primary);
    font-size: 17px;
    border-radius: 50%;
    transition: .25s ease;
    flex-shrink: 0;
}

.ain-faq-item.active .ain-faq-toggle {
    background: var(--faq-accent);
    color: #fff;
}

.ain-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.ain-faq-answer-inner {
    padding: 0 55px 16px;
    color: #30375d;
    font-size: 14px;
    line-height: 1.75;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Collapse accidental double <br><br> inside answers */

/*.ain-faq-answer-inner > br + br {*/
/*    display: none;*/
/*}*/
.ain-faq-answer-inner p {
    /*margin-bottom: 12px; */
    line-height: 1.6;
}

.ain-faq-answer-inner p:last-child {
    margin-bottom: 0; /* Removes gap after the final paragraph */
}
/* =========================================================
   EMPTY STATES
========================================================= */

.ain-faq-empty {
    padding: 30px;
    border: 1px dashed #d9cce9;
    border-radius: 12px;
    color: var(--faq-muted);
    text-align: center;
    font-size: 14px;
}

.ain-faq-no-results {
    display: none;
    padding: 45px 15px;
    text-align: center;
    border: 1px dashed #ded5ed;
    border-radius: 15px;
    background: #fffbfe;
}

.ain-faq-no-results.show {
    display: block;
}

.ain-faq-no-results-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9e5f1;
    color: var(--faq-accent);
    border-radius: 50%;
    font-size: 22px;
}

.ain-faq-no-results h3 {
    color: var(--faq-primary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 7px;
}

.ain-faq-no-results p {
    color: var(--faq-muted);
    font-size: 14px;
}

.ain-faq-no-results button {
    border: 0;
    border-radius: 50px;
    padding: 10px 22px;
    background: var(--faq-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

/* =========================================================
   BOTTOM CTA
========================================================= */

.ain-faq-bottom-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 22px;
    width: calc(100% - 50px);
    max-width: 1405px;
    min-height: 100px;
    margin: 0 auto 35px;
    padding: 17px 27px;
    background: linear-gradient(105deg, #fff1f9, #fce6f5);
    border: 1px solid #eddbf0;
    border-radius: 14px;
}

.ain-faq-cta-shape {
    position: absolute;
    z-index: -1;
    width: 300px;
    height: 300px;
    border: 40px solid rgba(218, 105, 176, .09);
    border-radius: 50%;
    right: 160px;
    top: 30px;
    pointer-events: none;
}

.ain-faq-cta-icon {
    width: 75px;
    min-width: 75px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--faq-primary);
    font-size: 38px;
}

.ain-faq-cta-divider {
    width: 2px;
    height: 55px;
    background: var(--faq-accent);
    flex-shrink: 0;
}

.ain-faq-cta-content {
    flex: 1;
    min-width: 0;
}

.ain-faq-cta-content h2 {
    color: var(--faq-primary);
    font-size: 25px;
    font-weight: 700;
    margin: 0 0 3px;
}

.ain-faq-cta-content h2 span {
    color: var(--faq-accent);
}

.ain-faq-cta-content p {
    color: var(--faq-primary);
    font-size: 14px;
    margin: 0;
}

.ain-faq-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-height: 52px;
    padding: 12px 27px;
    border-radius: 50px;
    background: var(--faq-accent);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 5px 13px rgba(192, 0, 99, .12);
    transition: .25s ease;
    flex-shrink: 0;
}

.ain-faq-cta-button:hover {
    background: var(--faq-primary);
    color: #fff !important;
    transform: translateY(-2px);
}

/* =========================================================
   SEARCH MODE — collapse sidebar, expand content full width
========================================================= */

.ain-faq-layout.searching {
    grid-template-columns: 1fr;
}

.ain-faq-layout.searching .ain-faq-sidebar {
    display: none;
}

.ain-faq-layout.searching .ain-faq-content-area {
    grid-column: 1 / -1;
}

/* =========================================================
   HIGHLIGHT MATCHED KEYWORD
========================================================= */

.ain-faq-highlight {
    background: #ffe4f0;
    color: var(--faq-accent);
    font-weight: 700;
    padding: 0 2px;
    border-radius: 3px;
}

/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1199px) {

    .ain-faq-content-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .ain-faq-layout {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 20px;
    }

    .ain-faq-tab {
        font-size: 13px;
        padding: 8px 10px;
        min-height: 44px;
    }

    .ain-faq-tab-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 13px;
    }

    .ain-faq-bottom-cta {
        width: calc(100% - 40px);
    }
}

@media (max-width: 991px) {

    .ain-faq-content-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ain-faq-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ain-faq-bottom-cta {
        width: calc(100% - 32px);
    }

    /* Sidebar becomes horizontal scrolling tab bar on top */

    .ain-faq-sidebar {
        position: relative;
        top: auto;
        width: 100%;
    }

    .ain-faq-sidebar-inner {
        padding: 4px;
        overflow: hidden;
    }

    .ain-faq-sidebar-heading {
        display: none;
    }

    .ain-faq-tabs {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 6px;
        padding: 4px;
        scrollbar-width: thin;
        scrollbar-color: #d7bfd5 transparent;
        -webkit-overflow-scrolling: touch;
    }

    .ain-faq-tab {
        flex: 0 0 auto;
        width: auto;
        min-height: 42px;
        padding: 8px 13px;
        gap: 8px;
        border-radius: 9px;
        white-space: nowrap;
        font-size: 12.5px;
    }

    .ain-faq-tab-text {
        overflow: visible;
        text-overflow: clip;
    }

    .ain-faq-tab-icon {
        width: 24px;
        height: 24px;
        min-width: 24px;
        font-size: 12px;
    }

    .ain-faq-category-heading {
        align-items: flex-start;
        margin-bottom: 12px;
        padding-bottom: 12px;
    }

    .ain-faq-category-heading h2 {
        font-size: 17px;
    }

    .ain-faq-category-heading p {
        font-size: 11.5px;
        line-height: 1.5;
    }

    .ain-faq-cta-content h2 {
        font-size: 22px;
    }

    .ain-faq-cta-button {
        padding: 12px 18px;
    }
}

/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 767px) {

    .ain-faq-hero {
        padding: 20px 14px 22px;
    }

    .ain-faq-hero h1 {
        font-size: 24px;
    }

    .ain-faq-hero-inner > p {
        font-size: 13px;
        line-height: 1.6;
        max-width: 450px;
    }

    .ain-faq-search {
        height: 46px;
        padding: 0 12px 0 16px;
        gap: 10px;
    }

    .ain-faq-search input {
        font-size: 13px;
    }

    .ain-faq-content-section {
        padding: 16px 12px 20px;
    }

    .ain-faq-layout {
        gap: 14px;
    }

    .ain-faq-tab {
        font-size: 12px;
        padding: 7px 11px;
        min-height: 38px;
        gap: 6px;
    }

    .ain-faq-tab-icon {
        width: 22px;
        height: 22px;
        min-width: 22px;
        font-size: 11px;
    }

    .ain-faq-tab-count {
        min-width: 20px;
        height: 20px;
        padding: 0 6px;
        font-size: 10px;
    }

    .ain-faq-category-heading {
        flex-wrap: wrap;
        gap: 8px;
    }

    .ain-faq-category-heading h2 {
        font-size: 15px;
    }

    .ain-faq-category-heading p {
        font-size: 11px;
    }

    .ain-faq-count {
        font-size: 10px;
        padding: 5px 10px;
    }

    .ain-faq-question {
        gap: 10px;
        min-height: 48px;
        padding: 9px 11px;
    }

    .ain-faq-number {
        width: 22px;
        height: 22px;
        min-width: 22px;
        font-size: 10px;
    }

    .ain-faq-question-text {
        font-size: 13px;
        line-height: 1.5;
    }

    .ain-faq-toggle {
        width: 22px;
        height: 22px;
        min-width: 22px;
        font-size: 14px;
    }

    .ain-faq-answer-inner {
        padding: 0 14px 13px 43px;
        font-size: 12.5px;
        line-height: 1.7;
    }

    .ain-faq-item {
        border-radius: 10px;
    }

    .ain-faq-bottom-cta {
        width: calc(100% - 24px);
        margin-bottom: 25px;
        padding: 18px 14px;
        flex-wrap: wrap;
        gap: 12px;
        border-radius: 12px;
    }

    .ain-faq-cta-icon {
        width: 43px;
        min-width: 43px;
        height: 43px;
        font-size: 27px;
    }

    .ain-faq-cta-divider {
        height: 42px;
    }

    .ain-faq-cta-content {
        flex: 1;
        min-width: 0;
    }

    .ain-faq-cta-content h2 {
        font-size: 18px;
    }

    .ain-faq-cta-content p {
        font-size: 11px;
        line-height: 1.5;
    }

    .ain-faq-cta-button {
        width: 100%;
        min-height: 44px;
        font-size: 13px;
    }
}

@media (max-width: 380px) {

    .ain-faq-content-section {
        padding-left: 10px;
        padding-right: 10px;
    }

    .ain-faq-question {
        gap: 8px;
        padding: 8px;
    }

    .ain-faq-answer-inner {
        padding: 0 10px 12px 38px;
    }

    .ain-faq-cta-content {
        min-width: 0;
    }

    .ain-faq-hero h1 {
        font-size: 21px;
    }
}