/**
 * NCM Ajax Frontend Styles
 */

/* Variables */
:root {
    --ncm-primary: #fcaf3b;
    --ncm-primary-hover: #1d4ed8;
    --ncm-secondary: #64748b;
    --ncm-border: #e2e8f0;
    --ncm-bg: #f8fafc;
    --ncm-text: #1e293b;
    --ncm-text-light: #64748b;
    --ncm-radius: 8px;
    --ncm-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --ncm-transition: all 0.2s ease;
}
#toggle-btn-categories {
	display:none!important;
}
#expandable-tags {
  width: 100%;
  overflow: hidden; /* Hide extra content when collapsed */
  transition: max-height 0.3s ease; /* Smooth opening effect */
  border: 0px solid #ddd;
}

/* The default state */
.collapsed {
  max-height: 250px;
}

/* The expanded state */
.expanded {
  max-height: 80vh; /* Expands to 80% of the screen height */
  overflow-y: auto !important; /* Adds scrollbar if content exceeds 80vh */
}
#toggle-btn-tags {
    width: 100%;
    background: transparent !important;
    background-color: transparent !important;
    padding: 5px;
    box-shadow: 0px -20px 30px 10px #f6f5f5;
    overflow: visible;
}
#toggle-btn-tags:hover{
	color:#3d6fe5;
}
#toggle-btn-companies {
    width: 100%;
    background: transparent !important;
    background-color: transparent !important;
    padding: 5px;
    box-shadow: 0px -0px 30px 10px #f6f5f5;
    overflow: visible;
}
#toggle-btn-companies:hover{
	color:#3d6fe5;
}
#toggle-btn-locations {
    width: 100%;
    background: transparent !important;
    background-color: transparent !important;
    padding: 5px;
    box-shadow: 0px -0px 30px 10px #f6f5f5;
    overflow: visible;
}
#toggle-btn-locations:hover{
	color:#3d6fe5;
}
#toggle-btn-job-categories {
    width: 100%;
    background: transparent !important;
    background-color: transparent !important;
    padding: 5px;
    box-shadow: 0px -0px 30px 10px #f6f5f5;
    overflow: visible;
}
#toggle-btn-job-categories:hover{
	color:#3d6fe5;
}
/* Search Bar */
.ncm-search-bar {
    display: flex;
    gap: 0px;
    margin-bottom: 10px;
    max-width: none;
}

.ncm-search-input {
    flex: 1;
    padding: 5px 15px;
    border: 1px solid var(--ncm-border);
    border-radius: 8px 0px 0px 8px;
    font-size: 16px;
    transition: var(--ncm-transition);
    background: #fff;
    min-height: 40px!important;
    font-family: var(--bodyfontfamily);
}

.ncm-search-input:focus {
    outline: none;
    border-color: var(--ncm-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ncm-search-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 20px;
    background: var(--ncm-primary);
    color: #fff;
    border: 1px solid var(--ncm-border);
    border-left: 0px;
    border-radius: 0px 8px 8px 0px;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: var(--ncm-transition);
    min-height: 40px!important;
}

.ncm-search-button:hover {
    background: var(--ncm-primary-hover);
	cursor:pointer;
}

.ncm-search-icon {
    display: flex;
    align-items: center;
}
.ncm-post-area{
    min-width: 70%;
    flex-grow: 3;
}
/* Filters */
.ncm-filters {
    margin-bottom: 32px;
}

/* Content Type Toggle */
.ncm-content-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 10px;
    border: 1px solid var(--ncm-border);
    border-radius: var(--ncm-radius);
    overflow: hidden;
}
.ncm-toggle-btn {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    background: #fff;
    color: var(--ncm-text);
    cursor: pointer;
    transition: var(--ncm-transition);
    text-align: center;
    line-height: 1em;
}

.ncm-toggle-btn + .ncm-toggle-btn {
    border-left: 1px solid var(--ncm-border);
}

.ncm-toggle-btn:hover {
    background: var(--ncm-bg);
}

.ncm-toggle-btn.ncm-active {
    background: var(--ncm-primary);
    color: #fff;
}
.ncm-filter-divider {
    margin: 20px 0 10px 0;
    padding-bottom: 0px; 
    border-bottom: 1px solid rgba(100, 116, 139, 0.5);
}
.ncm-filter-divider .ncm-filter-title {
    border-bottom: none!important;
    margin: 0!important;
    font-family: var(--bodyfontfamily), var(--nv-fallback-ff) !important;
    color: var(--ncm-text-light)!important;
    letter-spacing: 0;
}
.ncm-filter-divider h4{
    font-family: var(--bodyfontfamily), var(--nv-fallback-ff) !important;
    color: var(--ncm-text-light);
    font-size: 16px;
    font-weight: 600;
}
.ncm-filter-group {
    margin-bottom: 10px;
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid var(--ncm-border);
}
.ncm-date-range {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-family: var(--bodyfontfamily), var(--nv-fallback-ff) !important;
    margin-top: 10px;
    flex-direction: row;
}

.ncm-date-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 120px;
}

.ncm-date-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ncm-text-light);
    text-transform: uppercase;
    line-height: 1em;
    letter-spacing: 0.5px;
    font-family: var(--bodyfontfamily), var(--nv-fallback-ff) !important;
}

.ncm-date-input {
    padding: 5px 10px;
    border: 1px solid var(--ncm-border);
    border-radius: var(--ncm-radius);
    font-size: 16px;
    color: var(--ncm-text);
    background: #fff;
    transition: var(--ncm-transition);
    font-family: var(--bodyfontfamily), var(--nv-fallback-ff) !important;
    min-height: 40px!important;
}
.ncm-date-input::placeholder {
    color: var(--ncm-text-light);
}
.ncm-filters h4{
    font-size: 18px!important;
}
.cat-job-posting {
    border: 3px solid var(--nv-primary-accent)!important;
    box-shadow: 0px 0px 20px rgba(252, 175, 59, 0.2);
}
.ncm-date-input:focus {
    outline: none;
    border-color: var(--ncm-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ncm-date-clear {
    align-self: flex-end;
    padding: 0px 12px;
    border: 1px solid var(--ncm-border);
    border-radius: var(--ncm-radius);
    background: #fff;
    color: var(--ncm-text-light);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
    width: 100%;
    transition: var(--ncm-transition);
    display: none;
}

.ncm-date-clear:hover {
    border-color: var(--ncm-primary);
    color: var(--ncm-text);
}
.ncm-filter-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ncm-text);
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
	border-bottom: 1px solid #c1c1c1;
}

.ncm-filter-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.ncm-filter-term {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    background: #fff;
    border: 1px solid var(--ncm-border);
    border-radius: 100px;
    font-size: 14px;
    color: var(--ncm-text);
    cursor: pointer;
    transition: var(--ncm-transition);
    line-height: 1.8em;
}

.ncm-filter-term:hover {
    opacity:0.9;
}

.ncm-filter-term.ncm-active {
    background: var(--ncm-primary);
    border-color: var(--ncm-primary);
    color: #fff;
}

.ncm-term-count {
    font-size: 12px;
    opacity: 0.7;
}

.ncm-term-remove {
    display: none;
    font-size: 16px;
    line-height: 1;
    margin-left: 4px;
}

.ncm-filter-term.ncm-active .ncm-term-remove {
    display: inline;
}

.ncm-clear-filters {
    margin-top: 16px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--ncm-border);
    border-radius: var(--ncm-radius);
    font-size: 13px;
    color: var(--ncm-secondary);
    cursor: pointer;
    transition: var(--ncm-transition);
}

.ncm-clear-filters:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* ============================
   Meta Filters (Job Posting)
   ============================ */

.ncm-meta-filter-group .ncm-meta-filter-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ncm-range-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--ncm-text-light);
    margin-bottom: 3px;
    line-height: 1em;
}
.ncm-helper-text {
    display: block;
    font-size: 13px;
    color: var(--ncm-text-light);
    margin-top: 0px;
    line-height: 1;
    font-style: italic;
    margin-bottom: 5px;
}
/* Compensation range inputs */
.ncm-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ncm-range-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--ncm-border);
    border-radius: var(--ncm-radius);
    background: #fff;
    overflow: hidden;
    flex: 1;
    font-family: var(--bodyfontfamily);
}

.ncm-range-prefix {
    padding: 4px 0 4px 10px;
    font-size: 16px;
    color: var(--ncm-text-light);
    user-select: none;
}

.ncm-range-input-wrap input {
    border: none;
    outline: none;
    padding: 4px 10px 4px 4px;
    font-size: 16px;
    width: 100%;
    min-width: 0;
    background: transparent;
}

.ncm-range-separator {
    font-size: 16px;
    color: var(--ncm-text-light);
    flex-shrink: 0;
}

/* Dual range slider */
.ncm-dual-slider {
    position: relative;
    height: 36px;
    margin-top: 4px;
}

.ncm-slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--ncm-border);
    border-radius: 2px;
    transform: translateY(-50%);
    pointer-events: none;
}

.ncm-slider-range {
    position: absolute;
    top: 0;
    height: 100%;
    background: var(--ncm-primary);
    border-radius: 2px;
}

.ncm-slider-thumb {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 4px;
    margin: 0;
    transform: translateY(-50%);
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    z-index: 2;
}

.ncm-slider-thumb::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ncm-primary);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    pointer-events: auto;
}

.ncm-slider-thumb::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ncm-primary);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    pointer-events: auto;
}

/* Equity options */
.ncm-equity-options,
.ncm-work-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Multi-select dropdown */
.ncm-multiselect {
    position: relative;
}

.ncm-multiselect-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 12px;
    border: 1px solid var(--ncm-border);
    border-radius: var(--ncm-radius);
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    transition: var(--ncm-transition);
    box-sizing: border-box;
    text-align: left;
    color: var(--ncm-text);
    font-family: var(--bodyfontfamily);
}

.ncm-multiselect-toggle:hover {
    border-color: var(--ncm-primary);
    background-color: #fff!important;
    color: var(--ncm-text);
}

.ncm-multiselect.ncm-open .ncm-multiselect-toggle {
    border-color: var(--ncm-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.ncm-multiselect-arrow {
    font-size: 12px;
    color: var(--ncm-text-light);
    transition: transform 0.2s ease;
}

.ncm-multiselect.ncm-open .ncm-multiselect-arrow {
    transform: rotate(180deg);
}

.ncm-multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    background: #fff;
    border: 1px solid var(--ncm-primary);
    border-top: none;
    border-radius: 0 0 var(--ncm-radius) var(--ncm-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ncm-multiselect-search {
    width: 100%;
    padding: 4px 12px;
    border: none;
    border-bottom: 1px solid var(--ncm-border);
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
    background: var(--ncm-bg);
}

.ncm-multiselect-search::placeholder {
    color: var(--ncm-text);
    font-size: 16px;
}

.ncm-multiselect-options {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
}

.ncm-multiselect-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    user-select: none;
}
.ncm-multiselect-text{
    line-height: 1.1em!important;
}

.ncm-multiselect-option:hover {
    background: var(--ncm-bg);
}

.ncm-multiselect-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 2px solid var(--ncm-border);
    border-radius: 3px;
    font-size: 12px;
    color: transparent;
    flex-shrink: 0;
    transition: var(--ncm-transition);
}

.ncm-multiselect-option.ncm-checked .ncm-multiselect-check {
    background: var(--ncm-primary);
    border-color: var(--ncm-primary);
    color: #fff;
}

.ncm-multiselect-option.ncm-checked {
    font-weight: 500;
}

.ncm-company-autocomplete {
    position: relative;
}

.ncm-company-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.ncm-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.ncm-company-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    background: var(--ncm-primary);
    border: 1px solid var(--ncm-primary);
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
}

.ncm-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    background: var(--ncm-primary);
    border: 1px solid var(--ncm-primary);
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
}

.ncm-company-pill-name {
    white-space: nowrap;
}

.ncm-category-pill-name {
    white-space: nowrap;
}

.ncm-company-pill-remove {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}

.ncm-category-pill-remove {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}

.ncm-company-input {
    width: 100%;
    padding: 5px 12px;
    border: 1px solid var(--ncm-border);
    border-radius: var(--ncm-radius);
    font-size: 16px;
    color: var(--ncm-text);
    box-sizing: border-box;
    background: #fff;
    transition: var(--ncm-transition);
    font-family: var(--bodyfontfamily);
}

.ncm-company-input:focus {
    outline: none;
    border-color: var(--ncm-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ncm-company-results {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--ncm-border);
    border-radius: var(--ncm-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.ncm-company-result {
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ncm-company-result:hover {
    background: var(--ncm-bg);
}

/* Travel slider */
.ncm-travel-slider-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ncm-travel-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--ncm-text);
}

.ncm-travel-value {
    font-weight: 600;
    color: var(--ncm-primary);
}

.ncm-travel-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: var(--ncm-border);
    border-radius: 2px;
    outline: none;
}

.ncm-travel-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ncm-primary);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    cursor: pointer;
}

.ncm-travel-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ncm-primary);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    cursor: pointer;
}

.ncm-travel-marks {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--ncm-text-light);
    padding: 0 2px;
}

/* Sort Options */
.ncm-sort-options {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0px;
}

.ncm-sort-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--ncm-text-light);
    font-family: var(--bodyfontfamily);
}

.ncm-sort-select {
    padding: 12px 36px 12px 14px;
    border: 1px solid var(--ncm-border);
    border-radius: var(--ncm-radius);
    font-size: 14px;
    font-family: var(--bodyfontfamily);
    color: var(--ncm-text);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    cursor: pointer;
    transition: var(--ncm-transition);
	line-height: 1em;
}

.ncm-sort-select:focus {
    outline: none;
    border-color: var(--ncm-primary);
}

/* Feed */
.ncm-feed {
    position: relative;
    min-height: 200px;
}

.ncm-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
}

.ncm-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--ncm-border);
    border-top-color: var(--ncm-primary);
    border-radius: 50%;
    animation: ncm-spin 0.8s linear infinite;
}

@keyframes ncm-spin {
    to { transform: rotate(360deg); }
}

.ncm-posts {
    transition: opacity 0.2s ease;
}

.ncm-posts.ncm-loading-posts {
    opacity: 0.5;
}

/* Post Items */
.ncm-post-item {
    display: flex;
    gap: 24px;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid var(--ncm-border);
    border-radius: var(--ncm-radius);
    margin-bottom: 16px;
    transition: var(--ncm-transition);
}

.ncm-post-item:hover {
    box-shadow: var(--ncm-shadow);
}

.ncm-post-thumbnail {
    flex-shrink: 0;
    width: 200px;
}

.ncm-post-thumbnail img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: calc(var(--ncm-radius) - 2px);
}

.ncm-post-content {
    flex: 1;
    min-width: 0;
}

.ncm-post-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.1;
}

.ncm-post-title a {
    color: var(--ncm-text);
    text-decoration: none;
    transition: var(--ncm-transition);
}

.ncm-post-title a:hover {
    color: var(--ncm-primary);
}

.ncm-post-meta {
    font-size: 13px;
    color: var(--ncm-text-light);
    margin-bottom: 5px;
	display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
}

.ncm-job-company {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    color: var(--ncm-text);
    font-weight: 600;
}

.ncm-job-company-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--ncm-bg);
    color: var(--ncm-text-light);
    overflow: hidden;
}

.ncm-job-company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ncm-job-details {
    list-style: none;
    margin: 0 0 12px 0;
    display: grid;
    gap: 4px;
    font-size: 13px;
    line-height: 1.2;
    color: var(--ncm-text-light);
    background: var(--ncm-bg);
    padding: 10px;
    border-radius: 5px;
}

.ncm-job-label {
    color: var(--ncm-text);
    font-weight: 600;
}

.ncm-post-publisher a {
    color: var(--ncm-text);
    font-weight: 600;
    text-decoration: none;
    transition: var(--ncm-transition);
}

.ncm-post-publisher a:hover {
    color: var(--ncm-primary);
}

.ncm-post-publisher::after {
    content: '·';
    margin-left: 5px;
    color: var(--ncm-text-light);
}

.ncm-post-excerpt {
    font-size: 15px;
    line-height: 1.2em;
    color: var(--ncm-secondary);
    margin-bottom: 5px;
}

.ncm-post-excerpt p {
    margin: 0;
}

.ncm-ai-summary {
    margin-bottom: 0px;
    font-family: var(--bodyfontfamily);
}

.ncm-ai-pill {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 0px 5px;
    border-radius: 999px;
    border: 1px solid #9100ff;
    background: transparent;
    color: #9100ff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1em;
    position: relative;
    cursor: pointer;
    transition: var(--ncm-transition);
    margin-top: 5px;
}

.ncm-ai-pill:hover,
.ncm-ai-pill:focus {
    border-color: #9100ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
    background: #9100ff;
    color: #fff;
}

.ncm-ai-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius:none;
    background: transparent;
}

.ncm-ai-pill::after,
.ncm-ai-pill::before {
    position: absolute;
    left: 0;
    opacity: 0;
    pointer-events: none;
    transition: var(--ncm-transition);
    
}
.ncm-ai-pill::after {
    content: attr(data-tooltip);
    bottom: calc(100% + 10px);
    background: #ffffff;
    color: var(--ncm-text);
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.2;
    width: 320px;
    max-width: 80vw;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
    z-index: 20;
    transform: translateY(4px);
}

.ncm-ai-pill::before {
    content: '';
    bottom: calc(100% + 4px);
    width: 10px;
    height: 10px;
    background: #fff;
    transform: translateY(4px) rotate(45deg);
}

.ncm-ai-pill:hover::after,
.ncm-ai-pill:hover::before,
.ncm-ai-pill:focus::after,
.ncm-ai-pill:focus::before {
    opacity: 1;
    transform: translateY(0);
}

.ncm-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ncm-primary);
    text-decoration: none;
    transition: var(--ncm-transition);
}

.ncm-read-more:hover {
    color: var(--ncm-primary-hover);
}

.ncm-read-more::after {
    content: '→';
}

/* No Results */
.ncm-no-results,
.ncm-error {
    text-align: center;
    padding: 60px 24px;
    color: var(--ncm-text-light);
    font-size: 15px;
}

.ncm-error {
    color: #ef4444;
}

/* Pagination */
.ncm-pagination {
    margin-top: 32px;
}

.ncm-pagination-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ncm-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid var(--ncm-border);
    border-radius: var(--ncm-radius);
    font-size: 14px;
    color: var(--ncm-text);
    text-decoration: none;
    transition: var(--ncm-transition);
}

.ncm-page-link:hover {
    border-color: var(--ncm-primary);
    color: var(--ncm-primary);
}

.ncm-page-link.ncm-current {
    background: var(--ncm-primary);
    border-color: var(--ncm-primary);
    color: #fff;
    pointer-events: none;
}

.ncm-page-dots {
    padding: 0 8px;
    color: var(--ncm-text-light);
}

.ncm-prev,
.ncm-next {
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .ncm-search-bar {
        flex-direction: row;
        margin-bottom: 5px;
    }

    .ncm-search-button {
        justify-content: center;
    }

    .ncm-post-item {
        flex-direction: column;
    }

    .ncm-post-thumbnail {
        width: 100%;
    }

    .ncm-post-thumbnail img {
        height: 200px;
    }

    .ncm-pagination-nav {
        gap: 4px;
    }

    .ncm-page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
    }
}