:root {
  --tm-primary-700: #1570ef; 
  --tm-primary-600: #1b84f0; 
  --tm-primary-500: #2991f1; 
  --tm-primary-300: #9ccbff;
  --tm-primary-100: #eaf4ff;
  --tm-ink-900: #343434;
  --tm-ink-700: #4b5563;
  --tm-ink-500: #6b7280;
  --tm-card: #ffffff;
  --tm-border: #e5e7eb;
}

.tm-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header like your screenshot */
.tm-hero {
  margin: 56px 0 32px;
  text-align: center;
}
.tm-kicker {
  display: inline-block;
  position: relative;
  font-weight: 600;
  color: var(--tm-ink-700);
  padding: 0 0.75rem;
  margin-bottom: 8px;
}
.tm-kicker::before,
.tm-kicker::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 84px;
  height: 2px;
  background: var(--tm-primary-300);
}
.tm-kicker::before {
  left: -92px;
  transform: translateY(-50%);
}
.tm-kicker::after {
  right: -92px;
  transform: translateY(-50%);
}
.tm-hero-title {
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  color: var(--tm-ink-900);
  margin: 0;
}

/* Grid */
.tm-grid {
    display:grid;
    gap:22px;
    grid-template-columns:repeat(3, 1fr);
    margin-bottom:24px;
}

/* Medium screens (tablets) */
@media (max-width: 1024px) {
    .tm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small screens (mobiles) */
@media (max-width: 600px) {
    .tm-grid {
        grid-template-columns: 1fr;
    }
}

/* Card */
.tm-card {
  background: var(--tm-card);
  border: 1px solid var(--tm-border);
  border-radius: 18px;
  padding: 22px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.tm-card:hover {
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.06);
  transform: translateY(-1px);
}

.tm-badge {
  display: inline-block;
  background: var(--tm-primary-100);
  color: #0b4a8e;
  border-radius: 12px;
  padding: 0.55rem 1.1rem;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
}

.tm-card-title {
  margin: 6px 0 4px;
  font-size: 20px;
}
.tm-card-title a {
  color: #222;
  text-decoration: none;
}
.tm-card-title a:hover {
  color: var(--tm-primary-700);
  text-decoration: underline;
}

.tm-meta {
  margin: 8px 0 6px;
  font-size: 15px;
  color: #111;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tm-ico {
  color: var(--tm-primary-600);
  flex: 0 0 20px;
}
.tm-date {
  font-weight: 800;
  letter-spacing: 0.5px;
}

.tm-excerpt {
  color: var(--tm-ink-500);
  font-size: 18px;
  line-height: 1.5;
  margin: 12px 0 18px;
}

/* Button (blue rounded pill) */
.tm-btn {
  display: inline-block;
  border: 2px solid var(--tm-primary-600);
  color: var(--tm-primary-600);
  border-radius: 9999px;
  padding: 0.65rem 1.2rem;
  font-weight: 600;
  text-decoration: none;
  transition: 0.15s background, 0.15s color;
}
.tm-btn:hover {
  background: var(--tm-primary-700);
  border-color: var(--tm-primary-700);
  color: #fff;
}

/* Pagination */
.tm-pagination {
  display: flex;
  justify-content: center;
  margin: 24px 0 8px;
}
.tm-pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
}
.tm-pagination a,
.tm-pagination span {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--tm-border);
  border-radius: 8px;
  color: #374151;
  text-decoration: none;
}
.tm-pagination .current {
  background: var(--tm-primary-700);
  border-color: var(--tm-primary-700);
  color: #fff;
}

/* Empty state */
.tm-empty {
  text-align: center;
  color: var(--tm-ink-500);
  margin: 24px 0;
}
