/* ═══════════════════════════════════════════════════════════════
   Romania Manpower — Blog / Resources Page Styles
   ═══════════════════════════════════════════════════════════════ */

/* ─── Blog Card ────────────────────────────────────────────── */
.rm-blog-card {
  transition: box-shadow 0.16s ease, transform 0.16s ease;
  overflow: hidden;
}

.rm-blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.rm-blog-card__thumb {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.rm-blog-card__thumb--big {
  height: 300px;
}

.rm-blog-card__thumb img {
  transition: transform 0.3s ease;
}

.rm-blog-card:hover .rm-blog-card__thumb img {
  transform: scale(1.03);
}

/* Category badge on thumbnail */
.rm-blog-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  z-index: 1;
}

/* Meta row */
.rm-blog-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-weight: 700;
}

.rm-blog-card__meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rm-blog-card__read {
  color: var(--rm-blue);
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ─── Filter Bar ───────────────────────────────────────────── */
.rm-blog-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.rm-blog-filters__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rm-blog-pill {
  padding: 9px 16px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid var(--border-default);
  background: #fff;
  color: var(--text-body);
}

.rm-blog-pill:hover {
  border-color: var(--rm-blue);
  color: var(--rm-blue);
}

.rm-blog-pill.is-active {
  background: var(--rm-blue);
  color: #fff;
  border-color: var(--rm-blue);
}

.rm-blog-filters__search {
  position: relative;
  width: 240px;
  flex-shrink: 0;
}

.rm-blog-filters__search input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 40px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--rm-ink);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.rm-blog-filters__search input:focus {
  border-color: var(--rm-blue);
  box-shadow: 0 0 0 3px rgba(36,60,120,0.12);
}

.rm-blog-filters__search input::placeholder {
  color: var(--text-muted);
  font-weight: 600;
}

/* ─── Newsletter Form ──────────────────────────────────────── */
.rm-newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.rm-newsletter-form input:focus {
  border-color: var(--rm-yellow);
  box-shadow: 0 0 0 3px rgba(252,216,24,0.2);
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .rm-blog-card__thumb--big {
    height: 240px;
  }
}

@media (max-width: 680px) {
  .rm-blog-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .rm-blog-filters__search {
    width: 100%;
  }

  .rm-blog-card__thumb {
    height: 180px;
  }

  .rm-blog-card__thumb--big {
    height: 200px;
  }

  .rm-newsletter-form {
    flex-direction: column;
  }

  .rm-newsletter-form input {
    width: 100%;
  }
}
