/* Support Single Page Specific Styles */
.support-single-page {
    background-color: #fff;
}

.support-index ul {
    list-style: none;
    padding-left: 0;
}

.support-index .index-item {
    margin-bottom: 0.75rem;
}

.support-index .index-link {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    transition: all 0.2s ease;
    line-height: 1.4;
    border-left: 2px solid transparent;
    padding-left: 15px;
}

.support-index .index-link:hover {
    color: var(--primary-color);
    padding-left: 18px;
}

.support-index .index-link.active {
    color: var(--primary-color);
    font-weight: 700;
    border-left-color: var(--primary-color);
}

.support-index .index-h3,
.support-index .index-h4 {
    font-size: 0.9rem;
    color: #888;
}

.support-sidebar-sticky {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.support-article-content {
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
}

.support-article-content h2,
.support-article-content h3,
.support-article-content h4 {
    scroll-margin-top: 100px;
    /* Offset for sticky header */
    font-family: var(--font-heading);
    font-stretch: 125%;
    font-weight: 800;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #000;
}

.support-article-content h2 {
    font-size: 1.75rem;
}

.support-article-content h3 {
    font-size: 1.45rem;
}

.support-article-content h4 {
    font-size: 1.25rem;
}

#mobileIndexToggle .bi-chevron-down.active {
    transform: rotate(180deg);
}

.transition-transform {
    transition: transform 0.3s ease;
}

/* Mobile Index Wrapper Styling */
@media (max-width: 991px) {
    .mobile-support-index-wrapper {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        background: #fff;
    }

    .mobile-support-index-wrapper .card {
        border-radius: 0 !important;
    }

    #support-index-mobile {
        max-height: 60vh;
        overflow-y: auto;
    }
}

/* Dropdown functionality for H2 in index */
.index-h2-wrap .submenu {
    display: none;
    margin-top: 0.5rem;
    padding-left: 1rem;
    border-left: 1px solid #eee;
    margin-left: 15px;
}

.index-h2-wrap.expanded .submenu {
    display: block;
}

.index-h2-wrap .toggle-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
    cursor: pointer;
    color: #999;
}

.index-h2-wrap.expanded>.index-item-inner .toggle-icon {
    transform: rotate(180deg);
}

.index-item-inner {
    padding-right: 5px;
}

.index-link {
    flex: 1;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.support-post-thumbnail img {
    border-radius: 8px 8px 0 0;
}

.support-sidebar-sticky a:hover {
    color: var(--primary-color) !important;
}

/* Custom FAQ Accordion Styling (Yoast to Bootstrap) */
.custom-faq-accordion {
    border: 1px solid #eef2f6;
    border-radius: 10px;
    overflow: hidden;
    margin: 2rem 0;
}

.custom-faq-accordion .accordion-item {
    border: none;
    border-bottom: 1px solid #eef2f6;
}

.custom-faq-accordion .accordion-item:last-child {
    border-bottom: none;
}

.custom-faq-accordion .accordion-header {
    margin: 0 !important;
}

.custom-faq-accordion .accordion-button {
    background-color: #fff;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1.5rem;
    box-shadow: none !important;
    border: none;
    display: flex;
    align-items: center;
}

.custom-faq-accordion .accordion-button:not(.collapsed) {
    background-color: #f8faff;
}

.custom-faq-accordion .accordion-button:focus {
    box-shadow: none !important;
    background-color: #f8faff;
}

/* Custom Left Chevron */
.custom-faq-accordion .accordion-button::after {
    background-image: none;
    content: "\F285";
    /* bi-chevron-right */
    font-family: "bootstrap-icons";
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-left: 0;
    order: -1;
    margin-right: 15px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-faq-accordion .accordion-button:not(.collapsed)::after {
    transform: rotate(90deg);
}

.custom-faq-accordion .accordion-body {
    padding: 0 1.5rem 1.75rem 3.4rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #4a5568;
    background-color: #f8faff;
}

.custom-faq-accordion .accordion-body p:last-child {
    margin-bottom: 0;
}

.custom-faq-accordion .accordion-body p:first-child {
    margin-top: 0;
}