/* ============================================
   IOX TYPESENSE SEARCH - ENHANCED STYLES
   Brand Refinements with Teal (#00A39F)
   ============================================ */

/* Brand Color Variables */
:root {
    --google-primary: #00A39F;         /* Main brand teal */
    --google-primary-hover: #008C88;   /* Darker on hover */
    --google-primary-light: #33B8B4;   /* Light accent */
    --google-primary-lighter: #E6F7F7; /* Very light bg */
    --google-link: #00A39F;            /* All links */
    --google-link-hover: #008C88;      /* Link hover */
    --google-link-visited: #007572;     /* Visited links */
}

/* Base Result Card Styling - Force 2 Columns */
.cmswt-hits .ais-Hits-list,
.cm-typesense-search .cmswt-hits .ais-Hits-list,
[data-columns] .cmswt-hits .ais-Hits-list,
[data-columns="3"] .cmswt-hits .ais-Hits-list,
[data-columns="2"] .cmswt-hits .ais-Hits-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
}

.cmswt-hits .ais-Hits-item {
    background: #fff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    border-left: 5px solid transparent !important;
    margin-bottom: 0 !important;
}

.cmswt-hits .ais-Hits-item:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
}

/* Color Themes by Post Type */
/* Events - Teal/Green Theme */
.cmswt-hits .ais-Hits-item[data-post-type="iox-event"],
.cmswt-hits .ais-Hits-item:has(.iox-search-result-event) {
    border-left-color: #00A39F !important;
    background-color: #d1f7f6 !important;
    border: 1px solid rgba(0, 163, 159, 0.18) !important;
}

.iox-search-result-event {
    background-color: #d1f7f6 !important;
    border-radius: 8px !important;
}

.iox-search-result-event img {
    border-radius: 8px 8px 0px 0px !important;
}

/* Pages - Yellow/Gold Theme */
.cmswt-hits .ais-Hits-item[data-post-type="page"],
.cmswt-hits .ais-Hits-item:has(.iox-search-result-page) {
    border-left-color: #E8A838 !important;
    background-color: #fff6dc !important;
    border: 1px solid rgba(232, 168, 56, 0.20) !important;
}

.iox-search-result-page {
    background-color: #fff6dc !important;
    border-radius: 8px !important;
}

.iox-search-result-page img {
    border-radius: 8px 8px 0px 0px !important;
}

/* Posts - Salmon/Coral Theme */
.cmswt-hits .ais-Hits-item[data-post-type="post"],
.cmswt-hits .ais-Hits-item:has(.iox-search-result-post) {
    border-left-color: #C15A36 !important;
    background-color: #ffece7 !important;
    border: 1px solid rgba(193, 90, 54, 0.18) !important;
}

.iox-search-result-post {
    background-color: #ffece7 !important;
    border-radius: 8px !important;
}

.iox-search-result-post img {
    border-radius: 8px 8px 0px 0px !important;
}

/* Profiles - Purple/Magenta Theme */
.cmswt-hits .ais-Hits-item[data-post-type="iox-profile"],
.cmswt-hits .ais-Hits-item:has(.iox-search-result-profile) {
    border-left-color: #9B2D6B !important;
    background-color: #f7e6f0 !important;
    border: 1px solid rgba(155, 45, 107, 0.18) !important;
}

.iox-search-result-profile {
    background-color: #f7e6f0 !important;
    border-radius: 8px !important;
}

.iox-search-result-profile img {
    border-radius: 8px !important;
}

/* Full-width layout (no filters) for Press Releases + Profiles */
/* Completely hide and remove FilterPanel from layout flow */
[data-collection="post"] .cmswt-FilterPanel,
[data-collection="post"] .cmswt-FilterPanel-itemsContent,
.cm-typesense-search[data-collection="post"] .cmswt-FilterPanel,
.cm-typesense-search[data-collection="post"] .cmswt-FilterPanel-itemsContent,
[data-collection="iox-profile"] .cmswt-FilterPanel,
[data-collection="iox-profile"] .cmswt-FilterPanel-itemsContent,
.cm-typesense-search[data-collection="iox-profile"] .cmswt-FilterPanel,
.cm-typesense-search[data-collection="iox-profile"] .cmswt-FilterPanel-itemsContent {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 0 !important;
    flex-basis: 0 !important;
    overflow: hidden !important;
}

/* Make hits/results take full width when FilterPanel is hidden */
[data-collection="post"] .cmswt-hits,
.cm-typesense-search[data-collection="post"] .cmswt-hits,
[data-collection="iox-profile"] .cmswt-hits,
.cm-typesense-search[data-collection="iox-profile"] .cmswt-hits {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    flex-basis: 100% !important;
}

/* Target parent containers that might use flexbox/grid layout */
[data-collection="post"] .cmswt-search-wrapper,
.cm-typesense-search[data-collection="post"],
[data-collection="iox-profile"] .cmswt-search-wrapper,
.cm-typesense-search[data-collection="iox-profile"] {
    display: flex !important;
    flex-direction: row !important;
}

/* Ensure the main content area expands */
[data-collection="post"] .cmswt-search-wrapper > *:not(.cmswt-FilterPanel),
.cm-typesense-search[data-collection="post"] > *:not(.cmswt-FilterPanel),
[data-collection="iox-profile"] .cmswt-search-wrapper > *:not(.cmswt-FilterPanel),
.cm-typesense-search[data-collection="iox-profile"] > *:not(.cmswt-FilterPanel) {
    flex: 1 1 auto !important;
    width: 100% !important;
}

/* Event Card - Banner Style */
.iox-search-result-event {
    display: flex !important;
    flex-direction: column !important;
    background-color: #d1f7f6 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.iox-search-result-event .iox-search-banner {
    width: 100% !important;
    height: 180px !important;
    overflow: hidden !important;
    position: relative !important;
}

.iox-search-result-event .iox-search-banner img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 8px 8px 0px 0px !important;
}

.iox-search-result-event .iox-search-banner::after {
    content: "EVENT" !important;
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    background: #00A39F !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
}

.iox-search-result-event .iox-search-content {
    padding: 20px !important;
}

.iox-search-result-event .iox-search-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.3 !important;
}

.iox-search-result-event .iox-search-title a {
    color: #00A39F !important;
    text-decoration: none !important;
}

.iox-search-result-event .iox-search-title a:hover {
    color: #008C88 !important;
}

.iox-search-result-event .iox-search-excerpt {
    font-size: 0.9rem !important;
    color: #555 !important;
    line-height: 1.6 !important;
    margin-bottom: 16px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.iox-search-result-event .iox-search-cta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #00A39F !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    transition: background 0.2s ease !important;
}

.iox-search-result-event .iox-search-cta:hover {
    background: #008C88 !important;
    color: #fff !important;
}

.iox-search-result-event .iox-search-cta::before {
    content: "🎫" !important;
}

/* Profile Card - Avatar Style */
.iox-search-result-profile {
    display: flex !important;
    align-items: flex-start !important;
    gap: 20px !important;
    padding: 20px !important;
    background-color: #f7e6f0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.iox-search-result-profile .iox-search-avatar {
    width: 100px !important;
    height: 100px !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 4px solid #9B2D6B !important;
    box-shadow: 0 4px 12px rgba(155, 45, 107, 0.2) !important;
}

.iox-search-result-profile .iox-search-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.iox-search-result-profile .iox-search-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.iox-search-result-profile .iox-search-type-badge {
    display: inline-block !important;
    background: #9B2D6B !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    margin-bottom: 8px !important;
}

.iox-search-result-profile .iox-search-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.3 !important;
}

.iox-search-result-profile .iox-search-title a {
    color: #9B2D6B !important;
    text-decoration: none !important;
}

.iox-search-result-profile .iox-search-title a:hover {
    color: #7a2355 !important;
}

.iox-search-result-profile .iox-search-role {
    font-size: 0.85rem !important;
    color: #888 !important;
    font-style: italic !important;
    margin-bottom: 12px !important;
}

.iox-search-result-profile .iox-search-excerpt {
    font-size: 0.9rem !important;
    color: #555 !important;
    line-height: 1.6 !important;
    margin-bottom: 12px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.iox-search-result-profile .iox-search-cta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: transparent !important;
    color: #9B2D6B !important;
    border: 2px solid #9B2D6B !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.iox-search-result-profile .iox-search-cta:hover {
    background: #9B2D6B !important;
    color: #fff !important;
}

/* Page Card - Clean Text Style (No Image) */
.iox-search-result-page {
    padding: 24px !important;
    background-color: #fff6dc !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.iox-search-result-page img {
    border-radius: 8px 8px 0px 0px !important;
}

.iox-search-result-page .iox-search-type-badge {
    display: inline-block !important;
    background: #E8A838 !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    margin-bottom: 12px !important;
}

.iox-search-result-page .iox-search-title {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.3 !important;
}

.iox-search-result-page .iox-search-title a {
    color: #B8860B !important;
    text-decoration: none !important;
}

.iox-search-result-page .iox-search-title a:hover {
    color: #8B6914 !important;
}

.iox-search-result-page .iox-search-excerpt {
    font-size: 0.95rem !important;
    color: #555 !important;
    line-height: 1.7 !important;
    margin-bottom: 16px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.iox-search-result-page .iox-search-cta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #B8860B !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
}

.iox-search-result-page .iox-search-cta:hover {
    color: #8B6914 !important;
}

.iox-search-result-page .iox-search-cta::after {
    content: "→" !important;
    transition: transform 0.2s ease !important;
}

.iox-search-result-page .iox-search-cta:hover::after {
    transform: translateX(4px) !important;
}

/* Post Card - Blog Style */
.iox-search-result-post {
    display: flex !important;
    align-items: flex-start !important;
    gap: 20px !important;
    padding: 20px !important;
    background-color: #ffece7 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.iox-search-result-post .iox-search-thumbnail {
    width: 120px !important;
    height: 90px !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.iox-search-result-post .iox-search-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 8px 8px 0px 0px !important;
}

.iox-search-result-post .iox-search-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.iox-search-result-post .iox-search-type-badge {
    display: inline-block !important;
    background: #C15A36 !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    margin-bottom: 8px !important;
}

.iox-search-result-post .iox-search-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.3 !important;
}

.iox-search-result-post .iox-search-title a {
    color: #C15A36 !important;
    text-decoration: none !important;
}

.iox-search-result-post .iox-search-title a:hover {
    color: #9a4729 !important;
}

.iox-search-result-post .iox-search-excerpt {
    font-size: 0.9rem !important;
    color: #555 !important;
    line-height: 1.6 !important;
    margin-bottom: 12px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.iox-search-result-post .iox-search-cta {
    color: #C15A36 !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-decoration: none !important;
}

.iox-search-result-post .iox-search-cta:hover {
    color: #9a4729 !important;
}

/* Filter Panel Styling */
.cmswt-refinement-list .ais-RefinementList-labelText,
.cmswt-panel .cmswt-panel-header {
    text-transform: capitalize !important;
}

/* Filter Panel Headers - Match Type Colors */
/* Events - Teal */
[data-collection="iox-event"] .ais-Panel-header,
.cm-typesense-search[data-collection="iox-event"] .ais-Panel-header {
    color: #00A39F !important;
}

[data-collection="iox-event"] .ais-Panel-header .ais-Panel-collapseIcon,
.cm-typesense-search[data-collection="iox-event"] .ais-Panel-header .ais-Panel-collapseIcon {
    color: #00A39F !important;
    fill: #00A39F !important;
}

[data-collection="iox-event"] .ais-Panel-header:hover,
.cm-typesense-search[data-collection="iox-event"] .ais-Panel-header:hover {
    background-color: rgba(0, 163, 159, 0.15) !important;
    color: #00A39F !important;
}

[data-collection="iox-event"] .ais-Panel-header:hover .ais-Panel-collapseIcon,
[data-collection="iox-event"] .ais-Panel-header:hover .ais-Panel-collapseButton,
.cm-typesense-search[data-collection="iox-event"] .ais-Panel-header:hover .ais-Panel-collapseIcon,
.cm-typesense-search[data-collection="iox-event"] .ais-Panel-header:hover .ais-Panel-collapseButton {
    color: #00A39F !important;
    fill: #00A39F !important;
}

/* Pages - Yellow/Gold */
[data-collection="page"] .ais-Panel-header,
.cm-typesense-search[data-collection="page"] .ais-Panel-header {
    color: #E8A838 !important;
}

[data-collection="page"] .ais-Panel-header .ais-Panel-collapseIcon,
.cm-typesense-search[data-collection="page"] .ais-Panel-header .ais-Panel-collapseIcon {
    color: #E8A838 !important;
    fill: #E8A838 !important;
}

[data-collection="page"] .ais-Panel-header:hover,
.cm-typesense-search[data-collection="page"] .ais-Panel-header:hover {
    background-color: rgba(232, 168, 56, 0.15) !important;
    color: #E8A838 !important;
}

[data-collection="page"] .ais-Panel-header:hover .ais-Panel-collapseIcon,
[data-collection="page"] .ais-Panel-header:hover .ais-Panel-collapseButton,
.cm-typesense-search[data-collection="page"] .ais-Panel-header:hover .ais-Panel-collapseIcon,
.cm-typesense-search[data-collection="page"] .ais-Panel-header:hover .ais-Panel-collapseButton {
    color: #E8A838 !important;
    fill: #E8A838 !important;
}

/* Posts/Press Releases - Salmon/Coral */
[data-collection="post"] .ais-Panel-header,
.cm-typesense-search[data-collection="post"] .ais-Panel-header {
    color: #C15A36 !important;
}

[data-collection="post"] .ais-Panel-header .ais-Panel-collapseIcon,
.cm-typesense-search[data-collection="post"] .ais-Panel-header .ais-Panel-collapseIcon {
    color: #C15A36 !important;
    fill: #C15A36 !important;
}

[data-collection="post"] .ais-Panel-header:hover,
.cm-typesense-search[data-collection="post"] .ais-Panel-header:hover {
    background-color: rgba(193, 90, 54, 0.15) !important;
    color: #C15A36 !important;
}

[data-collection="post"] .ais-Panel-header:hover .ais-Panel-collapseIcon,
[data-collection="post"] .ais-Panel-header:hover .ais-Panel-collapseButton,
.cm-typesense-search[data-collection="post"] .ais-Panel-header:hover .ais-Panel-collapseIcon,
.cm-typesense-search[data-collection="post"] .ais-Panel-header:hover .ais-Panel-collapseButton {
    color: #C15A36 !important;
    fill: #C15A36 !important;
}

/* Profiles - Purple/Magenta */
[data-collection="iox-profile"] .ais-Panel-header,
.cm-typesense-search[data-collection="iox-profile"] .ais-Panel-header {
    color: #9B2D6B !important;
}

[data-collection="iox-profile"] .ais-Panel-header .ais-Panel-collapseIcon,
.cm-typesense-search[data-collection="iox-profile"] .ais-Panel-header .ais-Panel-collapseIcon {
    color: #9B2D6B !important;
    fill: #9B2D6B !important;
}

[data-collection="iox-profile"] .ais-Panel-header:hover,
.cm-typesense-search[data-collection="iox-profile"] .ais-Panel-header:hover {
    background-color: rgba(155, 45, 107, 0.15) !important;
    color: #9B2D6B !important;
}

[data-collection="iox-profile"] .ais-Panel-header:hover .ais-Panel-collapseIcon,
[data-collection="iox-profile"] .ais-Panel-header:hover .ais-Panel-collapseButton,
.cm-typesense-search[data-collection="iox-profile"] .ais-Panel-header:hover .ais-Panel-collapseIcon,
.cm-typesense-search[data-collection="iox-profile"] .ais-Panel-header:hover .ais-Panel-collapseButton {
    color: #9B2D6B !important;
    fill: #9B2D6B !important;
}

/* Ensure collapse button icon is always visible */
.ais-Panel-collapseIcon {
    color: inherit !important;
    fill: currentColor !important;
}

.ais-Panel-collapseButton {
    color: inherit !important;
}

.ais-Panel-collapseButton:hover .ais-Panel-collapseIcon {
    opacity: 1 !important;
}

/* Row Dividers */
.cmswt-hits .ais-Hits-item + .ais-Hits-item {
    margin-top: 0 !important;
}

/* Input Focus States - Brand Teal */
.cmswt-SearchBox input:focus,
.cmswt-SearchBox input[type="search"]:focus {
    border-color: #00A39F !important;
    box-shadow: 0 0 0 3px rgba(0, 163, 159, 0.1) !important;
    outline: none !important;
}

/* Chip/Filter Borders - Match Type Colors */
/* Events - Teal */
[data-collection="iox-event"] .ais-RefinementList-item--selected .ais-RefinementList-label,
[data-collection="iox-event"] .ais-RefinementList-item--selected .ais-RefinementList-checkbox,
.cm-typesense-search[data-collection="iox-event"] .ais-RefinementList-item--selected .ais-RefinementList-label,
.cm-typesense-search[data-collection="iox-event"] .ais-RefinementList-item--selected .ais-RefinementList-checkbox {
    border-color: #00A39F !important;
}

[data-collection="iox-event"] .ais-RefinementList-item--selected .ais-RefinementList-labelText,
.cm-typesense-search[data-collection="iox-event"] .ais-RefinementList-item--selected .ais-RefinementList-labelText {
    color: #00A39F !important;
    font-weight: 600 !important;
}

/* Pages - Yellow/Gold */
[data-collection="page"] .ais-RefinementList-item--selected .ais-RefinementList-label,
[data-collection="page"] .ais-RefinementList-item--selected .ais-RefinementList-checkbox,
.cm-typesense-search[data-collection="page"] .ais-RefinementList-item--selected .ais-RefinementList-label,
.cm-typesense-search[data-collection="page"] .ais-RefinementList-item--selected .ais-RefinementList-checkbox {
    border-color: #E8A838 !important;
}

[data-collection="page"] .ais-RefinementList-item--selected .ais-RefinementList-labelText,
.cm-typesense-search[data-collection="page"] .ais-RefinementList-item--selected .ais-RefinementList-labelText {
    color: #E8A838 !important;
    font-weight: 600 !important;
}

/* Posts/Press Releases - Salmon/Coral */
[data-collection="post"] .ais-RefinementList-item--selected .ais-RefinementList-label,
[data-collection="post"] .ais-RefinementList-item--selected .ais-RefinementList-checkbox,
.cm-typesense-search[data-collection="post"] .ais-RefinementList-item--selected .ais-RefinementList-label,
.cm-typesense-search[data-collection="post"] .ais-RefinementList-item--selected .ais-RefinementList-checkbox {
    border-color: #C15A36 !important;
}

[data-collection="post"] .ais-RefinementList-item--selected .ais-RefinementList-labelText,
.cm-typesense-search[data-collection="post"] .ais-RefinementList-item--selected .ais-RefinementList-labelText {
    color: #C15A36 !important;
    font-weight: 600 !important;
}

/* Profiles - Purple/Magenta */
[data-collection="iox-profile"] .ais-RefinementList-item--selected .ais-RefinementList-label,
[data-collection="iox-profile"] .ais-RefinementList-item--selected .ais-RefinementList-checkbox,
.cm-typesense-search[data-collection="iox-profile"] .ais-RefinementList-item--selected .ais-RefinementList-label,
.cm-typesense-search[data-collection="iox-profile"] .ais-RefinementList-item--selected .ais-RefinementList-checkbox {
    border-color: #9B2D6B !important;
}

[data-collection="iox-profile"] .ais-RefinementList-item--selected .ais-RefinementList-labelText,
.cm-typesense-search[data-collection="iox-profile"] .ais-RefinementList-item--selected .ais-RefinementList-labelText {
    color: #9B2D6B !important;
    font-weight: 600 !important;
}

/* Section Header Accent Bars */
.cmswt-panel-header {
    border-bottom: 3px solid #00A39F !important;
    padding-bottom: 8px !important;
}

/* IndexSwitcher Link - Always Bold */
.cmswt-IndexSwitcher-link,
.cmswt-IndexSwitcher-link:active,
.cmswt-IndexSwitcher-link:focus,
.cmswt-IndexSwitcher-link:hover,
.cmswt-IndexSwitcher-link.active,
.cmswt-IndexSwitcher-link[aria-current="true"],
.cmswt-IndexSwitcher-link.cmswt-active,
.cmswt-IndexSwitcher-link.ais-Tabs-item--selected {
    font-weight: bold !important;
}

/* IndexSwitcher Link Active/Selected States - Match Type Colors */
/* Events - Teal */
.cmswt-IndexSwitcher-link[data-collection="iox-event"].active,
.cmswt-IndexSwitcher-link[data-collection="iox-event"]:active,
.cmswt-IndexSwitcher-link[data-collection="iox-event"]:focus,
.cmswt-IndexSwitcher-link[data-collection="iox-event"][aria-current="true"],
.cmswt-IndexSwitcher-link[data-collection="iox-event"].cmswt-active,
.cmswt-IndexSwitcher-link[data-collection="iox-event"].ais-Tabs-item--selected,
.ais-Tabs-item--selected[data-collection="iox-event"],
.ais-Tabs-item--selected[data-collection="iox-event"] .cmswt-IndexSwitcher-link {
    color: #00A39F !important;
    border-color: #00A39F !important;
    background-color: rgba(0, 163, 159, 0.1) !important;
    font-weight: bold !important;
}

/* Pages - Yellow/Gold */
.cmswt-IndexSwitcher-link[data-collection="page"].active,
.cmswt-IndexSwitcher-link[data-collection="page"]:active,
.cmswt-IndexSwitcher-link[data-collection="page"]:focus,
.cmswt-IndexSwitcher-link[data-collection="page"][aria-current="true"],
.cmswt-IndexSwitcher-link[data-collection="page"].cmswt-active,
.cmswt-IndexSwitcher-link[data-collection="page"].ais-Tabs-item--selected,
.ais-Tabs-item--selected[data-collection="page"],
.ais-Tabs-item--selected[data-collection="page"] .cmswt-IndexSwitcher-link {
    color: #E8A838 !important;
    border-color: #E8A838 !important;
    background-color: rgba(232, 168, 56, 0.1) !important;
    font-weight: bold !important;
}

/* Posts/Press Releases - Salmon/Coral */
.cmswt-IndexSwitcher-link[data-collection="post"].active,
.cmswt-IndexSwitcher-link[data-collection="post"]:active,
.cmswt-IndexSwitcher-link[data-collection="post"]:focus,
.cmswt-IndexSwitcher-link[data-collection="post"][aria-current="true"],
.cmswt-IndexSwitcher-link[data-collection="post"].cmswt-active,
.cmswt-IndexSwitcher-link[data-collection="post"].ais-Tabs-item--selected,
.ais-Tabs-item--selected[data-collection="post"],
.ais-Tabs-item--selected[data-collection="post"] .cmswt-IndexSwitcher-link {
    color: #C15A36 !important;
    border-color: #C15A36 !important;
    background-color: rgba(193, 90, 54, 0.1) !important;
    font-weight: bold !important;
}

/* Profiles - Purple/Magenta */
.cmswt-IndexSwitcher-link[data-collection="iox-profile"].active,
.cmswt-IndexSwitcher-link[data-collection="iox-profile"]:active,
.cmswt-IndexSwitcher-link[data-collection="iox-profile"]:focus,
.cmswt-IndexSwitcher-link[data-collection="iox-profile"][aria-current="true"],
.cmswt-IndexSwitcher-link[data-collection="iox-profile"].cmswt-active,
.cmswt-IndexSwitcher-link[data-collection="iox-profile"].ais-Tabs-item--selected,
.ais-Tabs-item--selected[data-collection="iox-profile"],
.ais-Tabs-item--selected[data-collection="iox-profile"] .cmswt-IndexSwitcher-link {
    color: #9B2D6B !important;
    border-color: #9B2D6B !important;
    background-color: rgba(155, 45, 107, 0.1) !important;
    font-weight: bold !important;
}

/* IndexSwitcher Item Active/Hover States - Match Type Colors */
/* Events - Teal */
.cmswt-IndexSwitcher-item.active[data-collection-type="iox-event"],
.cmswt-IndexSwitcher-item:hover[data-collection-type="iox-event"],
.cmswt-IndexSwitcher-item.active:has(.cmswt-IndexSwitcher-link[data-collection="iox-event"]),
.cmswt-IndexSwitcher-item:hover:has(.cmswt-IndexSwitcher-link[data-collection="iox-event"]) {
    color: #00A39F !important;
}

.cmswt-IndexSwitcher-item.active[data-collection-type="iox-event"] .cmswt-IndexSwitcher-link,
.cmswt-IndexSwitcher-item:hover[data-collection-type="iox-event"] .cmswt-IndexSwitcher-link,
.cmswt-IndexSwitcher-item.active:has(.cmswt-IndexSwitcher-link[data-collection="iox-event"]) .cmswt-IndexSwitcher-link,
.cmswt-IndexSwitcher-item:hover:has(.cmswt-IndexSwitcher-link[data-collection="iox-event"]) .cmswt-IndexSwitcher-link {
    color: #00A39F !important;
    font-weight: bold !important;
}

.cmswt-IndexSwitcher-item.active[data-collection-type="iox-event"]:after,
.cmswt-IndexSwitcher-item:hover[data-collection-type="iox-event"]:after,
.cmswt-IndexSwitcher-item.active:has(.cmswt-IndexSwitcher-link[data-collection="iox-event"]):after,
.cmswt-IndexSwitcher-item:hover:has(.cmswt-IndexSwitcher-link[data-collection="iox-event"]):after {
    background: #00A39F !important;
}

/* Pages - Yellow/Gold */
.cmswt-IndexSwitcher-item.active[data-collection-type="page"],
.cmswt-IndexSwitcher-item:hover[data-collection-type="page"],
.cmswt-IndexSwitcher-item.active:has(.cmswt-IndexSwitcher-link[data-collection="page"]),
.cmswt-IndexSwitcher-item:hover:has(.cmswt-IndexSwitcher-link[data-collection="page"]) {
    color: #E8A838 !important;
}

.cmswt-IndexSwitcher-item.active[data-collection-type="page"] .cmswt-IndexSwitcher-link,
.cmswt-IndexSwitcher-item:hover[data-collection-type="page"] .cmswt-IndexSwitcher-link,
.cmswt-IndexSwitcher-item.active:has(.cmswt-IndexSwitcher-link[data-collection="page"]) .cmswt-IndexSwitcher-link,
.cmswt-IndexSwitcher-item:hover:has(.cmswt-IndexSwitcher-link[data-collection="page"]) .cmswt-IndexSwitcher-link {
    color: #E8A838 !important;
    font-weight: bold !important;
}

.cmswt-IndexSwitcher-item.active[data-collection-type="page"]:after,
.cmswt-IndexSwitcher-item:hover[data-collection-type="page"]:after,
.cmswt-IndexSwitcher-item.active:has(.cmswt-IndexSwitcher-link[data-collection="page"]):after,
.cmswt-IndexSwitcher-item:hover:has(.cmswt-IndexSwitcher-link[data-collection="page"]):after {
    background: #E8A838 !important;
}

/* Posts/Press Releases - Salmon/Coral */
.cmswt-IndexSwitcher-item.active[data-collection-type="post"],
.cmswt-IndexSwitcher-item:hover[data-collection-type="post"],
.cmswt-IndexSwitcher-item.active:has(.cmswt-IndexSwitcher-link[data-collection="post"]),
.cmswt-IndexSwitcher-item:hover:has(.cmswt-IndexSwitcher-link[data-collection="post"]) {
    color: #C15A36 !important;
}

.cmswt-IndexSwitcher-item.active[data-collection-type="post"] .cmswt-IndexSwitcher-link,
.cmswt-IndexSwitcher-item:hover[data-collection-type="post"] .cmswt-IndexSwitcher-link,
.cmswt-IndexSwitcher-item.active:has(.cmswt-IndexSwitcher-link[data-collection="post"]) .cmswt-IndexSwitcher-link,
.cmswt-IndexSwitcher-item:hover:has(.cmswt-IndexSwitcher-link[data-collection="post"]) .cmswt-IndexSwitcher-link {
    color: #C15A36 !important;
    font-weight: bold !important;
}

.cmswt-IndexSwitcher-item.active[data-collection-type="post"]:after,
.cmswt-IndexSwitcher-item:hover[data-collection-type="post"]:after,
.cmswt-IndexSwitcher-item.active:has(.cmswt-IndexSwitcher-link[data-collection="post"]):after,
.cmswt-IndexSwitcher-item:hover:has(.cmswt-IndexSwitcher-link[data-collection="post"]):after {
    background: #C15A36 !important;
}

/* Profiles - Purple/Magenta */
.cmswt-IndexSwitcher-item.active[data-collection-type="iox-profile"],
.cmswt-IndexSwitcher-item:hover[data-collection-type="iox-profile"],
.cmswt-IndexSwitcher-item.active:has(.cmswt-IndexSwitcher-link[data-collection="iox-profile"]),
.cmswt-IndexSwitcher-item:hover:has(.cmswt-IndexSwitcher-link[data-collection="iox-profile"]) {
    color: #9B2D6B !important;
}

.cmswt-IndexSwitcher-item.active[data-collection-type="iox-profile"] .cmswt-IndexSwitcher-link,
.cmswt-IndexSwitcher-item:hover[data-collection-type="iox-profile"] .cmswt-IndexSwitcher-link,
.cmswt-IndexSwitcher-item.active:has(.cmswt-IndexSwitcher-link[data-collection="iox-profile"]) .cmswt-IndexSwitcher-link,
.cmswt-IndexSwitcher-item:hover:has(.cmswt-IndexSwitcher-link[data-collection="iox-profile"]) .cmswt-IndexSwitcher-link {
    color: #9B2D6B !important;
    font-weight: bold !important;
}

.cmswt-IndexSwitcher-item.active[data-collection-type="iox-profile"]:after,
.cmswt-IndexSwitcher-item:hover[data-collection-type="iox-profile"]:after,
.cmswt-IndexSwitcher-item.active:has(.cmswt-IndexSwitcher-link[data-collection="iox-profile"]):after,
.cmswt-IndexSwitcher-item:hover:has(.cmswt-IndexSwitcher-link[data-collection="iox-profile"]):after {
    background: #9B2D6B !important;
}

/* Pagination Selected Items - Match Type Colors */
/* Events - Teal */
[data-collection="iox-event"] .ais-Pagination-item--selected .ais-Pagination-link,
.cm-typesense-search[data-collection="iox-event"] .ais-Pagination-item--selected .ais-Pagination-link {
    color: #00A39F !important;
    background-color: rgba(0, 163, 159, 0.1) !important;
    border-color: #00A39F !important;
}

/* Pages - Yellow/Gold */
[data-collection="page"] .ais-Pagination-item--selected .ais-Pagination-link,
.cm-typesense-search[data-collection="page"] .ais-Pagination-item--selected .ais-Pagination-link {
    color: #E8A838 !important;
    background-color: rgba(232, 168, 56, 0.1) !important;
    border-color: #E8A838 !important;
}

/* Posts/Press Releases - Salmon/Coral */
[data-collection="post"] .ais-Pagination-item--selected .ais-Pagination-link,
.cm-typesense-search[data-collection="post"] .ais-Pagination-item--selected .ais-Pagination-link {
    color: #C15A36 !important;
    background-color: rgba(193, 90, 54, 0.1) !important;
    border-color: #C15A36 !important;
}

/* Profiles - Purple/Magenta */
[data-collection="iox-profile"] .ais-Pagination-item--selected .ais-Pagination-link,
.cm-typesense-search[data-collection="iox-profile"] .ais-Pagination-item--selected .ais-Pagination-link {
    color: #9B2D6B !important;
    background-color: rgba(155, 45, 107, 0.1) !important;
    border-color: #9B2D6B !important;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .cmswt-hits .ais-Hits-list {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    .iox-search-result-event .iox-search-banner {
        height: 140px !important;
    }
    
    .iox-search-result-event .iox-search-content {
        padding: 16px !important;
    }
    
    .iox-search-result-profile {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 16px !important;
    }
    
    .iox-search-result-profile .iox-search-avatar {
        width: 80px !important;
        height: 80px !important;
    }
    
    .iox-search-result-post {
        flex-direction: column !important;
        padding: 16px !important;
    }
    
    .iox-search-result-post .iox-search-thumbnail {
        width: 100% !important;
        height: 150px !important;
    }
    
    .iox-search-result-page {
        padding: 16px !important;
    }
}

@media screen and (max-width: 480px) {
    .iox-search-result-event .iox-search-title,
    .iox-search-result-profile .iox-search-title,
    .iox-search-result-page .iox-search-title,
    .iox-search-result-post .iox-search-title {
        font-size: 1rem !important;
    }
    
    .iox-search-result-event .iox-search-cta,
    .iox-search-result-profile .iox-search-cta {
        width: 100% !important;
        justify-content: center !important;
    }
}

