.match-note {
    font-size: 0.8rem;
    font-weight: bold;
    color: #004080; /* dark blue */
    margin-top: 4px;
    display: block;
  }
  
  .highlight {
    background: linear-gradient(90deg, orange, yellow);
    color: #000;
    padding: 0 2px;
    border-radius: 5px !important;
  }
  
  .keywords {
    font-style: italic;
    color: #73162C !important;
    margin-top: 4px;
    display: block;
    font-size: 0.85rem; /* reduced size */
  }
  
  .keywords-label {
    font-style: italic;
    font-weight: bold;
    background: linear-gradient(90deg, blue, indigo);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 6px;
    font-size: 0.8rem;
  }
  
  /* ✅ Filters */
  .filters {
    display: flex;
    gap: 1rem;
    margin: 1rem 0 2rem;
    padding: 0.75rem 1rem;
    background: #f9f9ff;
    border-radius: 10px;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  }
  
  .filters label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #444;
  }
  
  .filters select {
    margin-left: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: white;
    font-size: 0.9rem;
    transition: all 0.2s ease;
  }
  
  .filters select:hover {
    border-color: #888;
    background: linear-gradient(90deg, #f0f9ff, #e0f0ff);
  }

  .filters .reset-btn {
  display: inline-block;
  margin-left: 10px;
  padding: 6px 12px;
  background: #eee;
  border-radius: 6px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
}

.filters .reset-btn:hover {
  background: #ddd;
}

.filters .reset-btn {
    display: inline-block;
    margin-left: 10px;
    padding: 6px 14px;
    font-size: 14px;
    background: #f2f2f2;
    border: 1px solid #ccc;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
  }
  
  .filters .reset-btn:hover {
    background: #e0e0e0;
    color: #000;
  }
  
  
  /* ✅ Add grid layout like index.php */
  .latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 1.5rem;
  }
  
  /* ✅ Card styling */
  .card.small {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  .card.small:hover {
    transform: translateY(-4px);
  }
  
  .card.small img {
    width: 100%;
    height: 160px;
    object-fit: cover;
  }
  
  .card.small .card-body {
    padding: 0.8rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .card.small h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
  }
  
  .card.small p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.5rem;
    flex-grow: 1;
  }
  
  .card.small small {
    font-size: 0.75rem;
    color: #777;
  }
  .posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* exactly 4 per row */
    gap: 20px;
    margin-top: 20px;
  }
  
  /* --------------------------- */
/* Default mobile: 1 column */
.latest-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* Tablets: 2 columns */
  @media (min-width: 600px) {
    .latest-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  /* Desktop: 4 columns */
  @media (min-width: 1024px) {
    .latest-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  