/* ==========================================================================
   1. LAYOUT RESET MECHANICS
   ========================================================================== */
.ts-wrapper {
    position: relative;
    width: 100%;
    display: block;
    box-sizing: border-box;
    font-family: inherit;
}
.ts-wrapper * { box-sizing: border-box; }

.ts-wrapper .ts-search-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    width: 100%;
    min-height: 56px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ts-wrapper .ts-token-area {
    flex: 1 1 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ts-wrapper .ts-input {
    border: none;
    outline: none;
    flex: 1 1 140px;
    min-width: 140px;
    padding: 8px 0;
    background: transparent;
    box-shadow: none;
    margin: 0;
    font-size: 16px;
    color: #334155;
}

.ts-wrapper .ts-bar-actions {
    display: flex;
    flex-direction: row;
    gap: 16px;
    border-left: 1px solid #e2e8f0;
    padding-left: 16px;
    margin-left: 8px;
    align-items: center;
}
.ts-wrapper .ts-bar-actions div {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #94a3b8;
    font-size: 18px;
    transition: color 0.2s ease, transform 0.2s ease;
}
.ts-wrapper .ts-bar-actions div:hover {
    color: #0073aa;
    transform: scale(1.1);
}

/* ==========================================================================
   2. DESIGN BAR PRESETS
   ========================================================================== */
.ts-preset-rounded .ts-search-bar { border-radius: 50px; padding: 8px 24px; }
.ts-preset-underlined .ts-search-bar { border: none; border-bottom: 2px solid #cbd5e1; border-radius: 0; padding-left: 0; padding-right: 0; background: transparent; }
.ts-preset-glass .ts-search-bar { background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.6); box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.04); }
.ts-preset-dark .ts-search-bar { background: #0f172a; border-color: #334155; }
.ts-preset-dark .ts-input { color: #f8fafc; }
.ts-preset-dark .ts-bar-actions { border-left-color: #334155; }
.ts-preset-neo .ts-search-bar { border: none; background: #f1f5f9; box-shadow: 9px 9px 16px rgb(163,177,198,0.3), -9px -9px 16px rgba(255,255,255,0.7); }

.ts-wrapper .ts-chip {
    background: #0073aa;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}
.ts-wrapper .ts-chip span {
    cursor: pointer;
    font-weight: bold;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   3. NEW: SIDE-BY-SIDE TAXONOMY DROPDOWNS ENGINE
   ========================================================================== */
.ts-filter-row-dropdowns {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
    width: 100%;
}

.ts-dropdown-filter-select {
    position: relative;
    flex: 1 1 200px;
    min-width: 180px;
}

.ts-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #334155;
    font-weight: 500;
    transition: all 0.2s ease;
    user-select: none;
}
.ts-dropdown-trigger:hover {
    border-color: #94a3b8;
}
.ts-dropdown-filter-select.ts-menu-open .ts-dropdown-trigger {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.ts-trigger-counter {
    background: #0073aa;
    color: #ffffff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    margin-left: auto;
    margin-right: 6px;
    display: none;
}

.ts-dropdown-menu-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    margin-top: 6px;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    z-index: 1050;
    padding: 12px;
}
.ts-dropdown-filter-select.ts-menu-open .ts-dropdown-menu-list {
    display: block;
}

/* Dropdown Choice Row Checkboxes */
.ts-dropdown-menu-list .ts-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.ts-dropdown-menu-list .ts-checkbox-wrapper:hover {
    background: #f1f5f9;
}

/* Custom Checkbox Border Control Specifics */
.ts-tax-check {
    accent-color: #0073aa;
    width: 16px;
    height: 16px;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
}

/* Legacy Block Content Drawer List Layout Fallback */
.ts-wrapper .ts-filter-panel { display: none; background: #f8fafc; border: 1px solid #e2e8f0; padding: 20px; margin-top: 12px; border-radius: 8px; }
.ts-wrapper .ts-filter-group { margin-bottom: 16px; }
.ts-wrapper .ts-group-title { display: block; margin-bottom: 8px; font-size: 14px; color: #334155; }
.ts-wrapper .ts-filter-list { display: flex; flex-wrap: wrap; gap: 12px; }
.ts-wrapper .ts-checkbox-wrapper { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; color: #475569; }

/* ==========================================================================
   4. LAYOUT RENDER OUTPUT CONTROLLERS
   ========================================================================== */
.ts-wrapper.ts-mode-dropdown .ts-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-top: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 24px;
}
.ts-wrapper.ts-mode-inline .ts-results-dropdown {
    position: relative;
    width: 100%;
    margin-top: 24px;
    padding: 0;
    display: block;
}

.ts-wrapper .ts-results-container.ts-view-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.ts-wrapper .ts-result-item.ts-card {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ts-wrapper .ts-result-item.ts-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.06);
}

.ts-wrapper .ts-results-container.ts-view-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ts-wrapper .ts-result-item.ts-list {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    width: 100%;
}
.ts-wrapper .ts-result-item.ts-list .ts-item-img {
    flex: 0 0 160px;
    max-width: 160px;
}

.ts-wrapper .ts-item-img img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.ts-wrapper .ts-item-info { padding: 16px; flex: 1; }
.ts-wrapper .ts-item-title { font-weight: 700; font-size: 18px; color: #0f172a; text-decoration: none; margin-bottom: 6px; display: block; }
.ts-wrapper .ts-item-info p { color: #64748b; font-size: 14px; line-height: 1.5; margin: 0; }

/* AI Assistant */
.ts-passive-notification-box { background: #f0fdf4; border: 1px solid #bbf7d0; padding: 14px 18px; border-radius: 6px; margin-top: 16px; }
.ts-passive-notification-box p { margin: 0; font-size: 14px; color: #166534; display: flex; align-items: center; gap: 8px; }
.ts-ai-response-box { background: #f8fafc; border: 1px solid #e2e8f0; border-left: 4px solid #0073aa; padding: 16px; margin-bottom: 20px; border-radius: 4px; width: 100%; }
.ts-ai-response-box h5 { margin: 0 0 6px 0; color: #0073aa; font-size: 14px; }

.ts-wrapper .ts-loading-spinner-box, 
.ts-wrapper .ts-no-results { padding: 32px; text-align: center; color: #64748b; font-weight: 500; width: 100%; }

/* ==========================================================================
   5. PAGINATION INTERFACES
   ========================================================================== */
.ts-pagination-wrapper {
    margin-top: 32px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    clear: both;
}

.ts-numeric-pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ts-numeric-pagination .ts-page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 6px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #ffffff;
}
.ts-numeric-pagination .ts-page-number:hover,
.ts-numeric-pagination .ts-page-number.active {
    background: #0073aa;
    border-color: #0073aa;
    color: #ffffff;
}

.ts-load-more-btn {
    background: #0073aa;
    color: #ffffff;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease, transform 0.1s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    min-height: 44px;
}
.ts-load-more-btn:hover { background: #005a87; }
.ts-load-more-btn:disabled { background: #cbd5e1; cursor: not-allowed; }

.ts-btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: tsSpinnerRotate 0.6s linear infinite;
}

.ts-infinite-trigger { padding: 16px; width: 100%; display: flex; justify-content: center; }
.ts-scroll-loader {
    width: 24px;
    height: 24px;
    border: 3px solid #e2e8f0;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: tsSpinnerRotate 0.6s linear infinite;
}

@keyframes tsSpinnerRotate {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   CUSTOM RESOURCE CATEGORY BOX STYLING
   ========================================================================== */
.ts-result-item {
    padding: 0px;
    border-radius: 0px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ts-item-header-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.ts-category-pill-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 4px;
    width: fit-content;
}

.ts-cat-custom-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: inline-block;
}

.ts-category-pill-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
}

.ts-cta-action-text {
    font-size: 13px;
    font-weight: 600;
    margin-top: 2px;
}

.ts-wrapper .ts-item-title {
font-weight: 600;
    font-size: 18px;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 6px;
    display: block;	
	
}

.ts-wrapper .ts-item-info p {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
	 margin-bottom: 16px;
}

.ts-item-post-type-header
{
color:#ffffff;

/* Sets a 2px thick, solid, white border */
  border: 2px solid #ffffff; 
  
  /* Adds space between the text and the border so it doesn't look cramped */
  padding: 10px 20px; 
  
  margin-bottom:50px !important;
  
  /* Forces the border to wrap tightly around the text instead of stretching full-width */
  display: inline-block;
	
}


/* ==========================================
   RESOURCE TYPE LEFT BORDER COLORS
   ========================================== */

.ts-result-item {
    border-left: 10px solid #e5e5e5 !important;
    padding-left: 20px;
}

.ts-wrapper .ts-result-item.ts-card {
	
	
	 border-left: 10px !important;
	
}

/* Analyst Report */
.ts-resource-analyst_reports {
    border-left: 10px solid #F5BC47 !important;
}

/* White Paper */
.ts-resource-white_papers {
    border-left: 10px solid #F5BC47 !important;
	
}

/* Blog */
.ts-resource-blog {
    border-left: 10px solid #FF5000 !important;
}

/* Video */
.ts-resource-videos {
    border-left: 10px solid #6EDAD5 !important;
}

/* Webinar */
.ts-resource-webinar {
    border-left: 10px solid #6987F3 !important;
}

/* Datasheet */
.ts-resource-datasheets {
    border-left: 10px solid #F5BC47 !important;
}

/* Case Study */
.ts-resource-case-study {
    border-left: 10px solid #F5BC47 !important;
}

/* Ebooks */
.ts-resource-ebooks {
    border-left: 10px solid #7CC24C !important;
}

/* Industry Briefs */
.ts-resource-industry-briefs {
    border-left: 10px solid #F5BC47 !important;
}

/* Partner Brief */
.ts-resource-partner-brief {
    
	border-left: 10px solid #F5BC47 !important;
}

/* Events */
.ts-resource-events {
    
	border-left: 10px solid #7F3300 !important;
}



/* ZEDEDA Authors */
.ts-resource-zededa-authors {
    
	border-left: 10px solid #DAFF7F !important;
}


/* News */
.ts-resource-zededa-news {
    
	border-left: 10px solid #FFB27F !important;
}



