/* ── IME Resources Search Filters ── */

#ime-rsf-root {
  font-family: 'Figtree', sans-serif;
  color: #1e293b;
}

/* ── BAR ── */
.ime-bar-outer {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #dce8f5;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ime-search-field {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  background: #FBFDFF;
  border: 1px solid #d1d9e6;
  border-radius: 30px;
  padding: 2px 18px;
}
.ime-search-field input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  color: #1e293b;
  background: transparent;
  min-width: 0;
}
.ime-search-field input::placeholder { color: #94a3b8; }

/* ── DROPDOWNS ── */
.ime-select-wrap { position: relative; flex-shrink: 0; }

.ime-select-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FBFDFF;
  border: 1px solid #d1d9e6;
  border-radius: 30px;
  padding: 9px 16px 9px 18px;
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: border-color .15s;
}
.ime-select-trigger.ime-open { border-color: #0095ff; }
.ime-select-trigger.ime-disabled { color: #94a3b8; cursor: default; }
.ime-select-trigger .ime-arrow {
  font-size: 11px;
  color: #64748b;
  transition: transform .2s;
  margin-left: 2px;
}
.ime-select-trigger.ime-open .ime-arrow { transform: rotate(180deg); }

.ime-select-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(28,52,71,0.13);
  border: 1px solid #e8eef5;
  z-index: 100;
  overflow: hidden;
  animation: imeDropIn .15s ease;
}
.ime-select-dropdown.ime-open { display: block; }

@keyframes imeDropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ime-select-option {
  padding: 13px 20px;
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  color: #1e293b;
  cursor: pointer;
  transition: background .12s;
  border-bottom: 1px solid #f1f5f9;
}
.ime-select-option:last-child { border-bottom: none; }
.ime-select-option:hover { background: #f5f9ff; }
.ime-select-option.ime-selected { color: #2563eb; font-weight: 600; background: #f5f9ff; }

/* ── BUTTONS ── */
.ime-btn-search {
  background: #0095ff;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 12px 26px;
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
}
.ime-btn-search:hover { background: #2563eb; }

#ime-rsf-root .ime-search-field input[type="text"]:focus {
  outline: none;
  background-color: transparent;
  box-shadow: none;
  border-color: transparent;
  border: none;
}

#ime-rsf-root img.emoji,#ime-rsf-root img.emojioneemoji {
    display: inline-block;
    margin: 3px;
    width: 15px;
    height: 24px;
}

.ime-btn-reset {
  background: transparent;
  border: 1px solid #d1d9e6;
  border-radius: 30px;
  padding: 12px 18px;
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  color: #64748b;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
}
.ime-btn-reset:hover { 
	background: #e8f0fa;
    color: #0095ff;
    border-color: #f0f6ff;
	}

/* ── PILLS ── */
#ime-selected-row {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.ime-selected-label {
  font-size: 13px;
  color: #64748b;
  white-space: nowrap;
}
.ime-pills-row { display: flex; flex-wrap: wrap; gap: 8px; }

.ime-pill-results {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 20px;
  padding: 5px 12px 5px 14px; 
  font-size: 13px;
  font-weight: 500;
  animation: imePop .15s ease;
}
@keyframes imePop {
  from { transform: scale(.85); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.ime-pill-x {
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  opacity: .6;
  transition: opacity .1s;
}
.ime-pill-x:hover { opacity: 1; }

/* ── RESULTS ── */
.ime-results-header {
  display: flex;
  align-items: baseline;
  margin-top: 32px;
  margin-bottom: 16px;
}
.ime-count { font-size: 13px; color: #64748b; }

.ime-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

@media (max-width: 900px) {
  .ime-results-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ime-results-grid { grid-template-columns: 1fr; }
}

.ime-post-card {
  background: #fff;
  border: 1px solid #d1d9e6;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  cursor: default;
  text-decoration: none;
  color: inherit;
}
.ime-post-card:hover {
  box-shadow: 0 4px 24px rgba(28,52,71,0.07);
  transform: translateY(-2px);
}
.ime-post-card-thumb {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #d1dde8;
}
.ime-post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.ime-post-card:hover .ime-post-card-thumb img { transform: scale(1.03); }

.ime-post-badge {
  position: absolute;
  top: 14px;
  left: 14px;
font-size: 11px;
    font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #E93D82;
background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  padding: 0 11px;
}
.ime-post-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ime-post-title {
font-size: 1.3rem;
    font-weight: 600;
    color: #1C3447;
    margin-bottom: 20px;
    line-height: 1.35;
	transition:0.5s;
}
.ime-post-excerpt {
font-size: 1rem;
    color: #64748B;
    line-height: 1.4;
    font-weight: 300;
    flex: 1;
    margin-bottom: 30px;
}
.ime-post-readmore {
    font-size: 1rem;
    font-weight: 600;
    color: #0090FF;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ime-post-readmore:hover { color: #2563eb; }

.ime-no-results,
.ime-loading {
  font-size: 14px;
  color: #64748b;
  padding: 24px 0;
}

/* ── PAGINATION ── */
.ime-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.ime-pag-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #d1d9e6;
  background: #fff;
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
  flex-shrink: 0;
}
.ime-pag-btn:hover:not(.ime-active):not(.ime-dots) { background: #f0f6ff; border-color: #f0f6ff; color:#0095ff;}
.ime-pag-btn.ime-active { background: #0095ff; border-color: #0095ff; color: #fff; cursor: default; }
.ime-pag-btn.ime-dots { border: none; background: transparent; cursor: default; color: #64748b; }
.ime-pag-next { width: auto; padding: 0 18px; border-radius: 20px; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .ime-bar-outer { flex-direction: column; align-items: stretch; }
  .ime-select-wrap { width: 100%; }
  .ime-select-trigger { justify-content: space-between; }
}