.wrap {
    max-width: 1200px;
    margin: 0 auto
}

header.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 26px
}

.title {
    margin: 0 0 6px 0;
    font-size: 26px;
    font-weight: 700;
    color: #0e3b3a
}

.subtitle {
    margin: 0;
    color: var(--muted);
    font-weight: 500
}

.all-btn {
    background: var(--accent);
    color: #fff;
    padding: 12px 18px;
    border-radius: 999px;
    border: 0;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--pill-shadow)
}

/* grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    align-items: start;
    padding-top: 8px;
    height: auto !important;
}

.card {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 14px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: visible;
    border: 1px solid rgba(16, 24, 32, 0.04);
}

.photo {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #e6f5f1, #f5fbfa);
    position: relative;
    display: block
}

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

.badge {
    position: absolute;
    right: 12px;
    top: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 8px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    gap: 6px;
    align-items: center;
    box-shadow: 0 6px 14px rgba(20, 40, 40, 0.06)
}

.badge svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px
}

.info {
    padding: 12px 6px 4px
}

.name {
    font-size: 15px;
    font-weight: 700;
    margin: 4px 0;
    color: #193c3b;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.spec {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 10px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.next-appoint {
    background: #f6fcfb;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    color: #0c4943;
    font-weight: 600;
    align-items: center;
    gap: 10px;
    box-shadow: 0 3px 10px rgba(30, 80, 70, 0.02)
}

.next-appoint small {
    display: block;
    font-size: 11px;
    color: #7c9a98;
    font-weight: 600
}

/* second row look (logo small) */
.mini-logo {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(16, 24, 32, 0.04)
}

.mini-logo img {
    width: 24px;
    height: 24px;
    object-fit: contain
}