/* =========================================
   1. Layout & Container
   ========================================= */
body .mcf-faq-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

body .mcf-faq-content { flex: 3; min-width: 300px; }
body .mcf-faq-sidebar { flex: 1; min-width: 280px; }

/* =========================================
   2. NUCLEAR LIST RESET
   ========================================= */
body .mcf-faq-sidebar ul,
body .mcf-faq-sidebar li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    text-indent: 0 !important;
}

body .mcf-faq-sidebar li::before,
body .mcf-faq-sidebar li::after {
    content: none !important;
    display: none !important;
}

/* =========================================
   3. Accordion Header (Categories)
   ========================================= */
body .mcf-cat-item,
body .mcf-subcat-item {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 10px 10px;
	line-height: 1.2;
    cursor: pointer;
    font-weight: 500;
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;
}

/* --- Icon Circle --- */
body .mcf-icon-wrapper {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin-right: 5px;
    flex-shrink: 0;
}
body .mcf-subcat-item .mcf-icon-wrapper {
	width: 30px;
	height: 30px;
}

/* --- Icon Mask (Your Colors) --- */
body .mcf-icon-wrapper::before {
    content: '';
    display: block;
    width: 30px;
    height: 30px;
    background-color: #F48120; /* Your Orange */
    -webkit-mask-image: var(--cat-icon-url);
    mask-image: var(--cat-icon-url);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}
body .mcf-subcat-item .mcf-icon-wrapper::before {
    width: 25px;
    height: 25px;
}

/* Hover & Active States */
body .mcf-cat-item.mcf-active .mcf-icon-wrapper::before,
body .mcf-subcat-item.mcf-active .mcf-icon-wrapper::before,
body .mcf-cat-item:hover .mcf-icon-wrapper::before,
body .mcf-subcat-item:hover .mcf-icon-wrapper::before {
    background-color: #2ca3dc; /* Your Blue */
}

/* --- Chevron Arrow --- */
body .mcf-cat-item::after,
body .mcf-subcat-item::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #888;
    border-bottom: 2px solid #888;
    transform: rotate(45deg);
    margin-left: auto;
    margin-right: 5px;
    transition: transform 0.3s ease;
}

body .mcf-cat-item.mcf-active::after,
body .mcf-subcat-item.mcf-active::after {
    transform: rotate(225deg); /* Adjusted rotation for up */
    border-color: #333;
}

/* =========================================
   4. The Content List (Questions)
   ========================================= */
body .mcf-nested-list {
    display: none;
    padding-left: 0 !important;
    margin: 0 !important;
}

body .mcf-nested-list[style*="display: block"] {
    display: block !important;
}

body .mcf-subcat-li .mcf-subcat-item { padding-left: 20px; }

body .mcf-nested-list li a {
    color: currentColor !important;
    display: block !important;
    text-decoration: none !important;
    line-height: 1.4;
    padding: 10px 10px 10px 60px !important;
	font-size: 14px !important;
}

body .mcf-nested-list li a:hover { color: #2ca3dc !important; }
body .mcf-nested-list li a.active { font-weight: 600; color: #2ca3dc !important; }

/* =========================================
   5. SEARCH BAR STYLING (FIXED POSITION)
   ========================================= */
/* Title styling */
body .mcf-search-title { 
    margin-top: 0; 
    margin-bottom: 15px; 
    font-size: 24px; 
    font-weight: 600;
    color: #111b21; 
}

/* The Wrapper now only contains the input */
body .mcf-search-wrapper { 
    margin-bottom: 30px; 
    position: relative; /* This creates the context for the icon */
    width: 100%;
}

/* The Search Icon (Perfectly Centered) */
body .mcf-search-wrapper::before {
    content: '\f179'; /* Dashicon Search ID */
    font-family: dashicons;
    position: absolute;
    top: 50%; /* Center vertically */
    left: 15px;
    transform: translateY(-50%); /* Perfect center alignment */
    font-size: 22px;
    color: #2CA3DC; /* Gray color */
    pointer-events: none; /* Allows clicking through the icon */
    z-index: 10;
}

/* The Input Field */
body .mcf-search-box {
    width: 100%;
    padding: 20px 20px 20px 55px; /* Left padding makes room for the icon */
    border-radius: 15px; /* Pill Shape */
    border: none; /* Clean look */
    background-color: #f0f2f5;
    box-sizing: border-box;
    font-size: 18px !important;
    outline: none;
    height: auto; /* Let padding define height */
    line-height: normal;
}

body .mcf-search-box:focus {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* --- SEARCH SUGGESTIONS (BUG FIX) --- */
body .mcf-search-suggestions {
    display: none; /* FIX: Hidden by default */
    flex-direction: column;
    background-color: #fff;
    padding: 10px 0;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 10px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    margin-top: 5px;
}

/* Match the icon style in the suggestions list */
body .mcf-search-suggestions .mcf-suggestion-item {
    line-height: 1.4em;
    padding: 12px 20px;
    color: #333 !important;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

body .mcf-search-suggestions .mcf-suggestion-item:hover {
    background-color: #f5f5f5;
}

/* The yellow highlight */
body .mcf-highlight {
    background-color: #fff3cd;
    color: #111;
    font-weight: bold;
	margin-left: 3px;
	margin-right: 3px;
}

body .mcf-back-button { margin-top: 30px; padding: 8px 20px; border: 1px solid #00a884; border-radius: 20px; color: #00a884; background: transparent; cursor: pointer; }
body .mcf-back-button:hover { background-color: #00a884; color: #fff; }

/* --- Search Section Headers (FAQs vs Website) --- */
body .mcf-search-section-title {
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    letter-spacing: 0.5px;
}

/*-- Breadcrumbs Code --*/
.mcf-faq-breadcrumb-nav {
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.mcf-faq-breadcrumb-nav a {
    text-decoration: none;
}
.mcf-faq-breadcrumb-nav a:hover {
    text-decoration: underline;
}
.mcf-faq-breadcrumb-nav .dashicons {
	font-size: 14px;
	line-height: 1em;
	width: auto;
	height: auto;
	vertical-align: middle;
    margin: 0 5px;
}
.mcf-faq-breadcrumb-nav .mcf-current-breadcrumb {
    font-weight: 600;
}