    :root {
      --bg: #f7fafc;
      --card: #ffffff;
      --text: #1f2937;
      --muted: #6b7280;
      --accent: #2563eb; /* blue */
      --ring: #dbeafe;   /* light blue ring */
      --shadow: 0 10px 20px rgba(0,0,0,0.08);
    }

    * { box-sizing: border-box; }

    .container-thumb {
      max-width: 1100px;
         margin: 24px auto 60px;
      padding: 0 20px;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 22px;
    }

    @media (max-width: 980px) {
      .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    @media (max-width: 520px) {
      .grid { grid-template-columns: 1fr; }
    }

    .card {
      background: var(--card);
      border-radius: 18px;
      padding: 22px 18px 18px;
      box-shadow: var(--shadow);
      transition: transform 220ms ease, box-shadow 220ms ease;
      position: relative;
      isolation: isolate;
    }

    .card::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 18px;
      pointer-events: none;
      background: radial-gradient(300px 200px at 20% 0%, rgba(37,99,235,0.06), transparent 60%);
      opacity: 0;
      transition: opacity 220ms ease;
      z-index: 0;
    }

    .card:hover {
      transform: translateY(-4px);
      box-shadow: 0 20px 36px rgba(0,0,0,0.10);
    }
    .card:hover::after { opacity: 1; }

    .thumb-wrap {
      width: 140px;
      height: 140px;
      margin: 6px auto 14px;
      border-radius: 9999px; /* circle */
      padding: 6px; /* ring thickness */
      background: conic-gradient(from 180deg at 50% 50%, var(--ring), #e0f2fe, #eef2ff, var(--ring));
      display: grid;
      place-items: center;
    }

    .thumb {
      width: 100%;
      height: 100%;
      border-radius: 9999px;
      overflow: hidden;
      background: #e5e7eb;
      border: 2px solid #fff;
      box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
    }

    .thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .title {
      text-align: center;
      font-weight: 700;
      font-size: 1.05rem;
      margin-bottom: 6px;
    }

    .desc {
      text-align: center;
      color: var(--muted);
      font-size: 0.95rem;
      line-height: 1.35rem;
      min-height: 2.7rem; /* keeps heights consistent across cards */
    }

    .actions {
      margin-top: 14px;
      display: flex;
      justify-content: center;
      gap: 10px;
    }

    .btn {
      appearance: none;
      border: none;
      border-radius: 9999px;
      padding: 10px 16px;
      font-weight: 600;
      background: var(--accent);
      color: #fff;
      cursor: pointer;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
      transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
    }

    .btn:hover { transform: translateY(-1px); box-shadow: 0 10px 18px rgba(37, 99, 235, 0.3); }
    .btn:active { transform: translateY(0); box-shadow: 0 5px 10px rgba(37, 99, 235, 0.25); }

    /* Optional small label chip */
    .chip {
      position: absolute;
      top: 12px; right: 12px;
      font-size: 12px;
      background: #f1f5f9;
      color: #0f172a;
      border-radius: 999px;
      padding: 4px 10px;
      border: 1px solid #e2e8f0;
    }