/* Shared company card (homepage Featured Companies + Companies page). Compact size; page CSS scales it up. */
.cd-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 18px rgba(44,62,80,0.07); transition: transform 0.25s, box-shadow 0.25s; text-align: left; }
.cd-card:hover { transform: translateY(-4px); box-shadow: 0 14px 38px rgba(44,62,80,0.14); }
.cd-cover { position: relative; display: block; overflow: hidden; height: 130px; background-size: cover; background-position: center; }
.cd-cover-icon { position: absolute; right: 18px; bottom: 6px; font-size: 4.2rem; color: rgba(255,255,255,0.2); }
.cd-premium { position: absolute; top: 10px; left: 10px; padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,0.94); color: #000; font-size: 0.7rem; font-weight: 700; }
.cd-body { display: flex; flex-direction: column; flex: 1; padding: 0 16px 16px; }
.cd-head { display: flex; gap: 12px; align-items: flex-start; }
.cd-logo { position: relative; flex: 0 0 80px; width: 80px; height: 80px; margin-top: -34px; border-radius: 14px; border: 3px solid #fff; background: #fff; overflow: hidden; z-index: 2; box-shadow: 0 4px 14px rgba(0,0,0,0.16); display: flex; align-items: center; justify-content: center; }
.cd-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.cd-logo-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.4rem; border-radius: 10px; }
.cd-id { flex: 1; min-width: 0; padding-top: 10px; }
.cd-name { display: flex; align-items: center; gap: 6px; font-size: 1rem; font-weight: 700; color: #000; line-height: 1.25; text-decoration: none; }
.cd-name-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-line { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 0.78rem; color: #000; line-height: 1.3; }
.cd-line i { flex: 0 0 14px; text-align: center; font-size: 0.76rem; color: #1e4e9c; }
.cd-line span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cd-desc { margin: 12px 0 10px; font-size: 0.82rem; line-height: 1.5; color: #000; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cd-tags { display: flex; flex-wrap: nowrap; gap: 6px; margin-bottom: 12px; overflow: hidden; }
.cd-tag { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 11px; border-radius: 999px; background: #eaf1f9; color: #000; font-size: 0.72rem; font-weight: 600; }
.cd-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.cd-vac { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; color: #000; white-space: nowrap; }
.cd-vac i { font-size: 0.95rem; color: #1e3a6e; }
.cd-btn { flex: 0 1 54%; text-align: center; padding: 9px 10px; border: 1.5px solid #0f2a4a; border-radius: 9px; background: #fff; color: #0f2a4a; font-size: 0.8rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.cd-btn:hover { background: #0f2a4a; color: #fff; }
[data-theme="dark"] .cd-card { background: #1a2030; border-color: #2a3340; }
[data-theme="dark"] .cd-name, [data-theme="dark"] .cd-line, [data-theme="dark"] .cd-desc, [data-theme="dark"] .cd-vac { color: #e2e8f0; }
[data-theme="dark"] .cd-tag { background: #263043; color: #e2e8f0; }
[data-theme="dark"] .cd-btn { background: transparent; border-color: #64748b; color: #e2e8f0; }
[data-theme="dark"] .cd-btn:hover { background: #e2e8f0; color: #1a2030; }
[data-theme="dark"] .cd-logo { border-color: #1a2030; }
